Kr0oked / Compass

Simple and beautiful compass for Android
GNU General Public License v3.0
275 stars 36 forks source link

Keeps "waiting for location" after enabling geographic north #62

Open LucaReggiannini opened 8 months ago

LucaReggiannini commented 8 months ago

After enabling geographic North the app asks for geolocation permissions. Even if I grant the permission it keeps waiting for a location update forever

I'm using Lineage for MicroG (Android 13) for POCO F3.

Here is a screen (Italian language): Screenshot_20231024-222729_Bussola

Is there any other information/thing I can do/provide to try debug the problem?

Btw thanks for making the app. I really like it and I consider it the main open source compass app.

LucaReggiannini commented 8 months ago

Similar to #42

Kr0oked commented 8 months ago

There is a chance that this problem is solved with the latest version 1.12.0. Previously the app only requested your coarse loaction, which gets provided by the network location provider. And it seems this does not work on your system. Now you can allow access to either the fine or the coarse location. The fine location gets provided by the regular GPS provider, which should then hopefully provide a location on your system too.

LucaReggiannini commented 8 months ago

Thanks for the reply. Seems like it's still not working but now i get an extra error message after some times:Location could not be determined. Falling back to magnetic north and a "Reload location" button. If i tap the button, after some times, every loading text just disappears and i need to reopen the app to make it go again. Is there any other test i can do? Just for information: i see the same permission request as before (no difference for fine/coarse location). If there is no other obvious thing to try, i will make some test on the code

Kr0oked commented 8 months ago

If the loading text just disappears then the location was received and the compass shows to true north. So I think it works now. You can compare the degrees shown with true north enabled with the ones when the setting is not enabled, there should be difference of a few degrees then. For more specific investigations you can capture the app logs. That provides the information which location provider was choosen and which location was received. Or you can checkout the code with Android studio for full debugging and logging experience.

0xf0f commented 6 months ago

having this issue as well, version 1.13.0, galaxy s8+ running android pie

tEctutoRIt commented 1 month ago

Feature Request: Use Approximate Location for True North

Loving the app! Quick request: Can you make the True North feature work with approximate location instead of needing precise location? It would be great for privacy-conscious users.

Kr0oked commented 1 month ago

@tEctutoRIt I'm glad you like the app. The approximate location should already work. When your system supports this, then you should get asked if you want to grant precise or approximate location to the app. Regards Screenshot_1716668747

tEctutoRIt commented 1 month ago

Thank you for the quick response!

When I initially allowed approximate location, the app displayed a loading icon similar to the one mentioned in the first comment, which made me think it wasn't working. However, it seems to be working fine now!

Thanks for clarifying.