Missing Purpose String in Info plist File AppStore Connect Email

(296 Views)


When you submit your application for review to the AppStore Connect. You might sometime receive this email from AppStore Connect asking you to fix the issue "Missing Purpose String in Info plist File". Here is how the message looks like,

Dear Developer, We identified one or more issues with a recent delivery for your app XXXXX. Your delivery was successful, but you may wish to correct the following issues in your next delivery: "Missing Purpose String in Info.plist File. Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSLocationAlwaysUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string.If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. After you've corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect. Best regards, The App Store Team

Solution

Insert following lines in your .plist file

<key>NSLocationAlwaysUsageDescription</key> <string>custom message</string> <key>NSLocationWhenInUseUsageDescription</key> <string>custom message</string>

If you are using Expo, you can directly solve it by adding infoPlist to app.json like:

"expo": { "ios": { "bundleIdentifier": "com.app.yourapp", "infoPlist": { "NSLocationAlwaysUsageDescription": "custom message", }, }, }

Solution Worked 0 UpvotesUpvote

        

Solution Didn't Worked 0 DownvotesDownvote



Comments



Search