Muhammad Abbas
Muhammad Abbas

Reputation: 129

App Store rejection due to insufficient location usage explanation in Expo app

I recently submitted my Expo app to the App Store and it got rejected with the reason stating, "We noticed that your app requests the user’s consent to access the location, but doesn’t sufficiently explain the use of the location in the purpose string."

I have already ensured that my app.json contains the necessary keys for location permissions as follows:

    "infoPList": {
        "CFBundleURLTypes": [
            {
                "CFBundleURLSchemes": [
                    "com.googleusercontent.apps.XXX-XXX"
                ]
            }
        ],
        "UIRequiresFullScreen": true,
        "NSLocationWhenInUseUsageDescription": "XXX Message",
        "NSLocationAlwaysUsageDescription": "XXX Message",
        "NSLocationAlwaysAndWhenInUseUsageDescription": "XXX Message",
        "NSLocationUsageDescription": "XXX Message",
        "NSCameraUsageDescription": "XXX Message."
    },
    "buildNumber": "27",
    "googleServicesFile": "./GoogleService-Info.plist"
"plugins": [
      [
        "expo-location",
        {
          "locationAlwaysAndWhenInUsePermission": "XXX Message"
        }
      ],

Where "XXX Message" represents the actual explanation of why my app requires access to the user's location. Despite this, the rejection still occurred.

I am using Expo version "~49.0.6" and React Native version "0.72.6".

What could be the reason for this rejection, and how can I ensure that my app complies with the App Store guidelines regarding location access explanations? Any insights or suggestions would be greatly appreciated. Thank you!

Update: The message I defined is not being displayed! It just says: "Allow XXX to access your location". While the strings I defined are pretty descriptive!

Upvotes: 1

Views: 216

Answers (1)

Pawan Kumar Kushwaha
Pawan Kumar Kushwaha

Reputation: 196

you should try submitting app with proper explanation of why app uses location permission in purpose string like $(PRODUCT_NAME) would like to always/background access your current location to get nearby friends.

Upvotes: 1

Related Questions