React native issues with geo location. I already have the NSLocationAlwaysAndWhenInUseUsageDescription
key added in my Info.plist
file. However, I still am getting below error in my react native project.
Cannot check or request permission without the required "NSLocationAlwaysAndWhenInUseUsageDescription" entry in your app "Info.plist" file
-[RNPermissionsModule checkUsageDescriptionKeys:]
RNPermissionsModule.mm:218
-[RNPermissionsModule handlerForPermission:]
-[RNPermissionsModule request:resolve:reject:]
__invoking___
-[NSInvocation invoke]
-[NSInvocation invokeWithTarget:]
-[RCTModuleMethod invokeWithBridge:module:arguments:]
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
I am not sure why am I getting above error and what is causing it to solve it. Thanks in advance for any help to resolve my issue.
Tried below solutions but none of them worked out.
Location permission issue iOS 11 and iOS 10
https://github.com/react-native-maps/react-native-maps/issues/4166