New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Purpose String in Info.plist File for NSLocationAlwaysUsageDescription #25
Comments
Thanks for reporting this issue. This is something that is known about and there is an ongoing discussion about it here: For now, there are some alternative libraries in the README which handle the permissions differently. Alternatively, can you use I'm going to close this in favour of the open issue mentioned above. Let me know if you have any other issues or comments. |
A PR to help with this issue has been opened here: |
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I am using below code (Location for application usage only, not required for background) but getting email from iOS submission about "Missing Purpose String in Info.plist File for NSLocationAlwaysUsageDescription" Can you help me? How can I fix this?
|
@codoffer Exactly as the message says, you need to add that key, along with a description of why you need location permission, to your Info.plist file |
@matt-oakes I am not using location in background. I am using location when app is active only. For this, I am using 'whenInUse' with setRNConfiguration. Why am I getting email for NSLocationAlwaysUsageDescription? |
The library includes code for both "in use" and "always". Apple can't tell if your app is actually calling any of them. It requires that you add the usage strings for all location types. We should update the README to make this clear. |
@matt-oakes I know this is an old topic, however, Apple are currently rejecting some Apps if the use the Any solution for this ? |
Platforms
iOS
Versions
Description
We get the above warning email from Apple store. I use
LocationWhenInUseUsageDescription
but notNSLocationAlwaysAndWhenInUseUsageDescription
andNSLocationAlwaysUsageDescription
. In other terms we want location data only when app is in the foreground not in background.Things i tried
NSLocationAlwaysAndWhenInUseUsageDescription
andNSLocationAlwaysUsageDescription
. But this library uses the always permission when the strings are present, but we don't want those permission.What is the best way to handle this situation?
The text was updated successfully, but these errors were encountered: