Issue
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?
Solution
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"/>
Answered By - Maqsood
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.