You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only want to use "when in use" location permission but if I understand well, Apple forces me to also add NSLocationAlwaysUsageDescription key in Info.plist even if I am not using it.
When using the request code, the app display the right "when in use" dialog.
The problem is that if I added NSLocationAlwaysUsageDescription key, as soon as I am using navigator.geolocation.getCurrentPosition the app also requests the "always" location permission.
This only happens when testing on a real device.
On the simulator it only asks for the "when in use" permission.
Is there a way to prevent that ?
React-Native version: 0.59.6
Platform: iOS
react-native-permissions version: 1.1.1
The text was updated successfully, but these errors were encountered:
Hi,
I only want to use "when in use" location permission but if I understand well, Apple forces me to also add
NSLocationAlwaysUsageDescription
key in Info.plist even if I am not using it.When using the request code, the app display the right "when in use" dialog.
The problem is that if I added
NSLocationAlwaysUsageDescription
key, as soon as I am usingnavigator.geolocation.getCurrentPosition
the app also requests the "always" location permission.This only happens when testing on a real device.
On the simulator it only asks for the "when in use" permission.
Is there a way to prevent that ?
The text was updated successfully, but these errors were encountered: