grote / Transportr

Free Public Transport Assistant without Ads or Tracking
https://transportr.app
GNU General Public License v3.0
1.04k stars 187 forks source link

Fix location provider #912

Closed Altonss closed 8 months ago

Altonss commented 8 months ago

This is a quick fix that should close #911. @Kelvino9 @licaon-kter could you try it out?

licaon-kter commented 8 months ago

rebuilt and confirm that it fixes the issue, no crash

APK for testing: de.grobox.liberario_124.apk.ZIP (remove .ZIP from name)

Kelvino9 commented 8 months ago

Thank you @Altonss for the fix and @licaon-kter for providing an APK.

Transportr does not crash upon start with this build, but also no longer is able to get a fix on my positon like in previous releases. Is there no way to get that function back?

I do not depend on this function as I can use any navigation app to get more information on my surroundings on an unknown area, but it would be a nice to have feature since it was successfully included before.

Thanks anyway for the immediate bug fix.

licaon-kter commented 8 months ago

@Kelvino9 so you say that if you lock GPS location in GPSTest app, and then you open this app, it won't get your location?

Works fine for me here.

Kelvino9 commented 8 months ago

@licaon-kter I deleted everything, rebooted and tested again. It seems to work as intended after waiting for a few moments.

I did install GPSTest this time, because you mentioned it above. It worked. I then uninstalled GPSTest and reinitialized Transportr and it again worked as intended. I hope there isn't any data left from GPSTest and Transportr will continue to work without the need of running GPSTest before.

Was I just impatient when trying to get a fix on my position in Trasnportr? I didn't got a warning from Transportr earlier (before I used GPSTest) that it couldn't retrieve my position yet, but it notified me in later tests which actually led me to wait a bit.

licaon-kter commented 8 months ago

GPS takes time to get a lock, I guess this app needs a bigger icon for "looking for location" :)

Altonss commented 8 months ago

Just applied the changes you suggested @ialokim, and everything works fine for me. Only little issue I have, but idk if it's supposed to be normal, is that Transportr never asks me again about the location permission once I refuse (even if I click on the grey locate button).

Kelvino9 commented 8 months ago

In Organics Maps you'll be notified to change location permission manually once you denied location permission.

ialokim commented 8 months ago

Only little issue I have, but idk if it's supposed to be normal, is that Transportr never asks me again about the location permission once I refuse (even if I click on the grey locate button).

Good remark, let's follow up on this in #916 .