We received a message from iOS App Team about adding NSLocationAlwaysUsageDescription
key in Info.plist
file. Our last build was rejected for this specific reason.
Being clueless about what went wrong here. I googled up and found some interesting things.
NSLocationAlwaysUsageDescription
key needs to be added to your Info.plist
file if your app using user’s location data.
You need to add a custom message about why you need user’s location data as well. Quite surprised by this, we were not using geolocation service or tracking user’s location. Our app didn’t need this specific functionality. So why do we need to tell the user that we are tracking the user location while we are not?
Turns out React Native has a GeoLocation service which gets included by default into your build. Even if you do not use the GeoLocation API in your codebase, it is still in your app build. This triggers code bots about possible usage of Geolocation.
#react #react-native #reactjs #ios #ios-apps