Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant access to location in Background - unknown #4271

Open
utenus opened this issue Jan 6, 2025 · 8 comments
Open

Constant access to location in Background - unknown #4271

utenus opened this issue Jan 6, 2025 · 8 comments

Comments

@utenus
Copy link

utenus commented Jan 6, 2025

Description

The osmAnd application has permission to use location in the background, when navigating this is useful.
The problem is that the application has not been opened at all for two weeks and the navigation has not been set for a month and yet the application regularly checks the location in the background every day.

OS: iOS 18.2

Steps to reproduce

Use osmAnd on iPhone with latest iOS 18.2

Actual result

The problem is that the application has not been opened at all for two weeks and the navigation has not been set for a month and yet the application regularly checks the location in the background every day.

Expected result

The app should only check the location in the background when navigation is set.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.9 latest
Android/iOS version: 18.2
Device model: iPhone 15 Pro Max
Crash-Logs: No
@dmpr0 dmpr0 transferred this issue from osmandapp/OsmAnd Jan 7, 2025
@yuriiurshuliak
Copy link

To help us investigate, could you please provide more details? What exact steps did you follow before noticing this behavior? How are you determining that OsmAnd is checking the location daily? Could you clarify what you expect to see instead? If possible, please attach a screenshot or video showing the issue.

@utenus
Copy link
Author

utenus commented Jan 8, 2025

Unfortunately, I don't have more details. I don't use the app. I have it just in case and once every few months I update the maps. I use Apple Maps. If I don't update OsmAnd maps then I don't even open the app.

When OsmAnd initially asked me for permission to locate I gave it permission to locate in the background if I had the app minimized while navigating. The problem is that it checks my location even when I don't have any navigation turned on. I don't have any route set up.

The fact that OsmAnd checks my location very often and I can see it in the iPhone control panel and in settings.

What behavior would I expect, like the rest of the users to have the location checked in the background only when navigation is set.

@vshcherb
Copy link
Member

We need to try reproduce it on our devices, possibly we have incorrectly configured some tasks or application didn't exit. It should be easy to check

@vshcherb vshcherb changed the title Background work on iOS Constant access to location in Background - unknown Jan 16, 2025
@yuriiurshuliak
Copy link

@utenus To help us investigate further, could you please clarify:

  1. How exactly did you determine that OsmAnd was running in the background and accessing your location daily?
  2. Where in the iPhone settings did you find logs or indications that OsmAnd was using geolocation in the background?

@utenus
Copy link
Author

utenus commented Jan 31, 2025

@yuriiurshuliak 1. I already answered this question above 2. I'm not going to record an iPhone operating tutorial because all is on the scrennshots

@yuriiurshuliak
Copy link

Thank you for your cooperation. Unfortunately, we are unable to locate the logs of GPS usage in the background as shown in your screenshots within the iPhone settings. If a third-party program was used to obtain this information, it cannot be considered entirely reliable or verified.

Additionally, this behavior is not corroborated by data from the iPhone's Location Services, Battery Usage, or by observing the location arrow icon in the top status bar or Control Center.

@utenus
Copy link
Author

utenus commented Feb 2, 2025

@yuriiurshuliak Fortunately, the problem has been located in OsmAnd by one of the developers @vshcherb from what we can see from his message so we are waiting for an update and fix this bug

@DmitryAlexei
Copy link

DmitryAlexei commented Feb 2, 2025

@utenus in order to fix the error, we first need to reproduce it.
Currently, we cannot reproduce the bug using iOS tools.
You can help by suggesting the right steps to reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants