Search code examples
androidfluttergoogle-playandroid-permissions

Google play console is showing that my app took background location permission but my app didn't


I created an android app with flutter. I didn't take any background location permission in my app but when I try to upload my app to Google play store it shows me I took background location permission.

Here is the screenshot of my manifest file:

enter image description here

.

And here is the screenshot of play console where it shows me that I took background location permission:

enter image description here

.

And here is the list of all pub packages of my app:

enter image description here


Solution

  • Perhaps you're using a library that has the location permission. write the code at the bottom of this post, in your manifest to remove the permissions. But attention, probably by doing this action, your app gets into trouble. Test your app before publishing, or, find and remove or replace the library that using location permission.

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