title: How to remove ACCESS_BACKGROUND_LOCATION from Expo - Still having my app rejected by Google
body: <p>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.</p>
  <p>here is my app.json</p>
  <pre><code>{
    &quot;expo&quot;: {
      &quot;name&quot;: &quot;Cold Mind App&quot;,
      &quot;slug&quot;: &quot;coldmindApp&quot;,
      &quot;version&quot;: &quot;1.0.1.7&quot;,
      &quot;sdkVersion&quot;:&quot;42.0.0&quot;,
      &quot;platforms&quot;: [
        &quot;android&quot;
      ],
      &quot;orientation&quot;: &quot;portrait&quot;,
      &quot;icon&quot;: &quot;./assets/icon.png&quot;,
      &quot;splash&quot;: {
        &quot;image&quot;: &quot;./assets/splash.png&quot;,
        &quot;resizeMode&quot;: &quot;cover&quot;,
        &quot;backgroundColor&quot;: &quot;#000e1c&quot;
      },
      &quot;updates&quot;: {
        &quot;fallbackToCacheTimeout&quot;: 0
      },
      &quot;assetBundlePatterns&quot;: [
        &quot;**/*&quot;
      ],
      &quot;ios&quot;: {
        &quot;supportsTablet&quot;: false
      },
      &quot;web&quot;: {
        &quot;favicon&quot;: &quot;./assets/favicon.png&quot;
      },
      &quot;android&quot;: {
        &quot;permissions&quot;: [],
        &quot;package&quot;: &quot;com.coldmind.autotradeapp&quot;,
        &quot;adaptiveIcon&quot;:{
          &quot;backgroundColor&quot;:&quot;#000e1c&quot;,
          &quot;foregroundImage&quot;:&quot;./assets/icon.png&quot;
        },
        &quot;versionCode&quot;:15
      }
    }
  }
  </code></pre>
  <p>Here is my package.json</p>
  <pre><code>{
    &quot;main&quot;: &quot;node_modules/expo/AppEntry.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;expo start&quot;,
      &quot;android&quot;: &quot;expo start --android&quot;,
      &quot;ios&quot;: &quot;expo start --ios&quot;,
      &quot;web&quot;: &quot;expo start --web&quot;,
      &quot;eject&quot;: &quot;expo eject&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@react-navigation/native&quot;: &quot;^5.9.4&quot;,
      &quot;expo&quot;: &quot;~42.0.1&quot;,
      &quot;expo-file-system&quot;: &quot;~11.1.3&quot;,
      &quot;expo-sharing&quot;: &quot;~9.2.1&quot;,
      &quot;expo-status-bar&quot;: &quot;~1.0.4&quot;,
      &quot;firebase&quot;: &quot;8.2.3&quot;,
      &quot;object-to-array-convert&quot;: &quot;^1.1.0&quot;,
      &quot;react&quot;: &quot;16.13.1&quot;,
      &quot;react-dom&quot;: &quot;16.13.1&quot;,
      &quot;react-native&quot;: &quot;https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz&quot;,
      &quot;react-native-elements&quot;: &quot;^3.4.2&quot;,
      &quot;react-native-gesture-handler&quot;: &quot;~1.10.2&quot;,
      &quot;react-native-image-viewing&quot;: &quot;^0.2.0&quot;,
      &quot;react-native-linear-gradient&quot;: &quot;^2.5.6&quot;,
      &quot;react-native-reanimated&quot;: &quot;~2.2.0&quot;,
      &quot;react-native-screens&quot;: &quot;~3.4.0&quot;,
      &quot;react-native-web&quot;: &quot;~0.13.12&quot;,
      &quot;react-navigation&quot;: &quot;^4.4.4&quot;,
      &quot;react-navigation-stack&quot;: &quot;^2.10.4&quot;,
      &quot;react-navigation-tabs&quot;: &quot;^2.11.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.9.0&quot;
    },
    &quot;private&quot;: true
  }
  
  </code></pre>
  <p>And Here is Google Reply:</p>
  <p>*** 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?*</p>
  <p>Thanks!!!</p>