twitter-archive / twitter-kit-ios

Twitter Kit is a native SDK to include Twitter content inside mobile apps.
Apache License 2.0
688 stars 449 forks source link

App store rejection, NSLocationWhenInUseUsageDescription #90

Open isadon opened 6 years ago

isadon commented 6 years ago

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.

eduardo22i commented 6 years ago

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!

isadon commented 6 years ago

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

OldestChen commented 5 years ago

i just wonder which part the TwitterKit is using location