Still Happening: Your app is not compliant with Google Play Policies[Remove the ACCESS_BACKGROUND_LOCATION]

Hi Guys. I know this topic has been seen many times here. But even I been tried dozens of sugestions I read on the forum, My app is still been rejectd by google.
My app does not require background location, I have alread deleted expo-location and removed all the references from the code.

here is my app.json

{
  "expo": {
    "name": "Cold Mind App",
    "slug": "coldmindApp",
    "version": "1.0.1.7",
    "sdkVersion":"42.0.0",
    "platforms": [
      "android"
    ],
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#000e1c"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": false
    },
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "android": {
      "permissions": [],
      "package": "com.coldmind.autotradeapp",
      "adaptiveIcon":{
        "backgroundColor":"#000e1c",
        "foregroundImage":"./assets/icon.png"
      },
      "versionCode":15
    }
  }
}

Here is my package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@react-navigation/native": "^5.9.4",
    "expo": "~42.0.1",
    "expo-file-system": "~11.1.3",
    "expo-sharing": "~9.2.1",
    "expo-status-bar": "~1.0.4",
    "firebase": "8.2.3",
    "object-to-array-convert": "^1.1.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
    "react-native-elements": "^3.4.2",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-image-viewing": "^0.2.0",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-reanimated": "~2.2.0",
    "react-native-screens": "~3.4.0",
    "react-native-web": "~0.13.12",
    "react-navigation": "^4.4.4",
    "react-navigation-stack": "^2.10.4",
    "react-navigation-tabs": "^2.11.1"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0"
  },
  "private": true
}

And Here is Google Reply:

** 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)*
    • 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?*

Thanks!!!

@wodin , I have read you in many forum! I know you can help me!!! please

Make sure you do not have any old versions available for open/closed/internal testing in the Google Play Console.

1 Like


So Should I delete from 12 up to 15?

Wodin, Thanks for you answer!

I am not 100% sure if you need to delete them or if you just need to upload the new version to all of the active open/closed/internal testing “test tracks”.

So e.g. for one app of mine I have:

so if I was having this problem with this app I would first just make sure that the latest app was uploaded to Internal testing. If I still had a problem after that I would try to delete the old ones from Internal testing.

But I have not experienced this problem myself, so this is just based on what I have heard worked for other people.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.