Location permissions

I’m using the latest expo SDK 40
Google play constantly reject my updates because of
ACCESS_BACKGROUND_LOCATION
ACCESS_COARSE_LOCATION
ACCESS_FINE_LOCATION
But I don’t have them in my project
I saw a lot of developers face this issue. I tried almost all solutions… and nothing helps
I used before expo-location and some MapView components
But I removed them all, I removed manually package.json package-lock.json node_modules everything with related to location permissions
But google still rejects my updates…
I’m completely frustrated.

"android": {
      "package": "myapp.my",
      "permissions": [
        "CAMERA",
        "USE_FINGERPRINT",
        "USE_BIOMETRIC",
        "VIBRATE",
        "READ_PHONE_STATE"
      ],
      "config": {
        
      },
    },

Hey @fristyrd, it looks like you’re approaching this correctly by explicitly passing the permissions you need in the android.permissions array. Can you try building a binary and unzipping it locally and see if the manifest still contains the location values?

Cheers,
Adam

Hey adam, I tried apktool to unzip my apk file. And when I opened AndroidManifest there was no code for location permissions
what I do have:

<uses-feature
        android:name="android.hardware.camera.autofocus"
        android:required="false" />

    <uses-feature
        android:name="android.hardware.location"
        android:required="false" />

    <uses-feature
        android:name="android.hardware.location.gps"
        android:required="false" />

    <uses-feature
        android:name="android.hardware.location.network"
        android:required="false" />
<service
            android:name="expo.modules.location.services.LocationTaskService"
            android:exported="false" />
 <service
            android:name="io.nlopez.smartlocation.activity.providers.ActivityGooglePlayServicesProvider$ActivityRecognitionService"
            android:exported="false" />

        <service
            android:name="io.nlopez.smartlocation.geofencing.providers.GeofencingGooglePlayServicesProvider$GeofencingService"
            android:exported="false" />

        <service
            android:name="io.nlopez.smartlocation.geocoding.providers.AndroidGeocodingProvider$AndroidGeocodingService"
            android:exported="false" />

but there are all false

I also tried to include

<manifest xmlns:tools="http://schemas.android.com/tools">
  <uses-permission tools:node="remove" android:name="android.permission.ACCESS_FINE_LOCATION" />
</manifest>

But after

$ apktool b

I tried to open the apk again but with android studio, and there are no changes I include above

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