Closed PaitoAnderson closed 3 weeks ago
Yes, the plug-in uses the Motion API to automatically triggger location-tracking in the background. The Motion API comes under the umbrella of “Health”. The Play Store has become more strict about this permission, requiring you explain in detail why you’re using the motion API, which is to automatically trigger location-tracking in the background.
This is an accepted exemption for foreground-service launches.
see “Exemptions from background start restrictions“ in the Android Docs
The plug-in can, of course, operate without the motion api (it uses a Geofence around the last known position to detect movement). Your app will take longer distances to engage location-tracking (requiring movement of at least 200 meters)
Is there a way to include react-native-background-geolocation
without that permission? In our use case requiring a movement of at least 200 meters is OK.
The Play Store Health form isn't great and doesn't let you explain why you need it sadly, it's just an Other checkbox:
Thanks for the quick reply @christocracy
See the last paragraph of my blog here to learn how to remove specific permissions from your app.
Your Environment
react-native -v
): 0.72.6Expected Behavior
No issues in Play Store
Actual Behavior
Received this message in the Play Store
Steps to Reproduce
react-native-background-geolocation
to AppContext
Publish on Play Store
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```