skip to Main Content

If you are targeting Android 10 or newer (SDK level 29 or higher):
Remove the ACCESS_BACKGROUND_LOCATION permission from your app APK or app bundle.
If you’re using ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION, examine your code paths and restrict usage to foreground purposes only. (learn more)
Issue with your app
Since your app does not need background location, please request to remove background usage and reach compliance:

You should no longer see the Location declaration listed in console under App Content.
If your are targeting Android 9 or older (SDK level 28 or lower):
If you’re already using ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION, examine your code paths and restrict usage to foreground purposes only. (learn more)
In your console declaration, select “No” to the question “Does your app access location in the background in APKs or app bundles targeting Android 9 or older?

3

Answers


  1. First check in your AndroidManifest.xml that Background permission exists or not, if it is there then remove it, and if it is not there so it means that some of your packages are using it. so you have to remove it manually like this:

    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"
    tools:node="remove"/>
    
    Login or Signup to reply.
  2. it’s good to add background location disclaimer alert to the user if click ok then start location in the background if it’s really crucial to the app functionality.otherwise , just delete ACCESS_BACKGROUND_LOCATION from android manifest

    Login or Signup to reply.
  3. i removed in my AndroidManifest.xml but some of my packages contains android.permission.ACCESS_BACKGROUND_LOCATION permission,

    Solution for this,

    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"
                     tools:node="remove"/>
    

    above tools:node="remove" will remove from third party packages permissions

    also add xmlns:tools="schemas.android.com/tools" in your <manifest> in AndroidManifest.xml file it should be like this

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="schemas.android.com/tools" 
        package="yourpackagename">
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search