Location Permission Re-prompt on Resume from Background/Lock Screen Hinders Activity Data Retrieval. Has anyone else encountered this issue, or is it specific to my device?
With the WhenInUse's permission, The app should continuously fetch and record the user's location in the background, even when the screen is locked or when the app is not actively in use. There should not be any need for the user to re-allow permissions once they have been granted initially, ensuring a seamless tracking experience.
Actual Behavior
When the app goes into the background or when the phone's screen is locked, the location tracking sometimes prompts the user to allow location permissions again upon resuming. Additionally, the app fails to fetch or record the location data while running in the background or on a locked screen. This issue happens only sometimes. Not all the time
Steps to Reproduce
Start location tracking with the app.
Allow location with WhenInUse's permission
Send the app to the background or lock the phone screen.
After some time (20-30mn), resume the app.
Notice the permission prompt reappears randomly and the location data isn't fetched while in the background or on a locked screen.
Context
I am sure that:
I keep moving with the device when the activity has started
I won't interact with any app when my app is in background mode
The battery is in normal mode. No power save mode or under 20%.
Location Permission Re-prompt on Resume from Background/Lock Screen Hinders Activity Data Retrieval. Has anyone else encountered this issue, or is it specific to my device?
Your Environment
react-native
): 0.71.14react-native
): ^48.0.0Expected Behavior
With the WhenInUse's permission, The app should continuously fetch and record the user's location in the background, even when the screen is locked or when the app is not actively in use. There should not be any need for the user to re-allow permissions once they have been granted initially, ensuring a seamless tracking experience.
Actual Behavior
When the app goes into the background or when the phone's screen is locked, the location tracking sometimes prompts the user to allow location permissions again upon resuming. Additionally, the app fails to fetch or record the location data while running in the background or on a locked screen. This issue happens only sometimes. Not all the time
Steps to Reproduce
Context
I am sure that:
Debug logs