问题
I have currently some troubles to make my app comply with the new "Google Background Location Policy". Here is my situation :
- My application is targeting Android Api 22 and Up
- I have the following permissions required in my app : ACCESS_FINE_LOCATION
- I need this permission to display the User position in a Map while the app is in Foreground and for Bluetooth Low Energy usage
- I do not fetch location while the app is in Background
I don't understand how to setup the Google Play Console. The only cases I can see are the following :
- My application use location and is available starting from API 29, but do not require the ACCESS_BACKGROUND_LOCATION permission.
- My application don't use Location and don't have any *_LOCATION permissions.
I am missing the case where :
- My Application is available starting from API 22, So I don't have the ACCESS_BACKGROUND_LOCATION permission. But my app requires location permission in foreground and uses Bluetooth, so I need the ACCESS_FINE_LOCATION permission. I never request location in the background.
I guess the application already comply with the "Background Location Policy" since the app only fetch the location in foreground. However my apps updates are always rejected due to this policy, so I am a little bit confused.
Why my app do not comply ?
- Is it only because I have the permission ACCESS_FINE_LOCATION present in my app, and by default Google assume that the app request location in background ?
- Do I need to restrict my app to Android 9 and older, in order to not get stuck with the automatic attribution of ACCESS_BACKGROUND_LOCATION permission?
- Do I need to fill the Background Location Permission form in the Google Console and explain that I do not access location in the background ?
- Something else ?
Thanks for your feedback on it.
回答1:
try submitting and say you dont use background (declare foreground usage)
来源:https://stackoverflow.com/questions/65342646/how-to-make-my-android-app-comply-with-the-background-location-policy