twitter-kit-ios icon indicating copy to clipboard operation
twitter-kit-ios copied to clipboard

App store rejection, NSLocationWhenInUseUsageDescription

Open isadon opened this issue 6 years ago • 3 comments

Upon submission to the app store this framework is generating a rejection even though I am not using Location for tweets.

Email from app store submission states: "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 NSLocationWhenInUseUsageDescription 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.

isadon avatar Aug 28 '18 05:08 isadon

You have to add the permission description. I think the Tweet Compose requires the location usage. If that feature is not used in your app, the permission dialog will not be displayed:

Add this key/value to your info.plist

NSLocationWhenInUseUsageDescription Your location is required to share you location within tweets

Good luck!

eduardo22i avatar Aug 30 '18 08:08 eduardo22i

Still sucks to have to add the usage description when not using the Tweet Compose.

isadon avatar Sep 03 '18 16:09 isadon

i just wonder which part the TwitterKit is using location

OldestChen avatar May 16 '19 03:05 OldestChen