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

Fix: GPS Access denied when device in standby #1658

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Fix: GPS Access denied when device in standby #1658

merged 1 commit into from
Aug 8, 2023

Conversation

v-schaefer
Copy link

As discussed in #1653 , I've added the ACCESS_BACKGROUND_LOCATION and tested it successfully.
Starting to track a training while the phone is in standby now works with GPS.

@dennisguse
Copy link
Member

Thx :)

Can you move the definition of this permission to PublicApi?

The problem is, it is only needed for background starts and that only occurs due to PublicApi - otherwise we will forget why this permission is there in the first place.

Added ACCESS_BACKGROUND_LOCATION permission to access GPS while phone is in standby. This is necessary for situations where the PublicAPI is triggered to start a record from an external device like a smartwatch.
@v-schaefer
Copy link
Author

As discussed both my commits are squashed into one and ready now :)

@dennisguse dennisguse merged commit 3910837 into OpenTracksApp:main Aug 8, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants