First time when I call any function either isAppAvailable, getAppDisplayName, navigate etc I will receive the following error in xcode
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication canOpenURL:]
PID: 2093, TID: 350140, Thread name: (none), Queue name: com.facebook.react.RNLaunchNavigatorQueue, QoS: 0
Backtrace:
4 driverapp 0x00000001016b9bd0 -[LN_LaunchNavigator isMapAppInstalled:] + 232
5 driverapp 0x00000001016af374 -[LN_LaunchNavigator isAppAvailable:] + 120
6 driverapp 0x00000001016bbfe8 -[RNLaunchNavigator isAppAvailable:resolve:reject:] + 156
7 CoreFoundation 0x00000001913b98f4 AF3F8E01-C130-3464-AD40-C5532D273483 + 1222900
8 CoreFoundation 0x0000000191290df8 AF3F8E01-C130-3464-AD40-C5532D273483 + 7672
9 CoreFoundation 0x00000001912913cc AF3F8E01-C130-3464-AD40-C5532D273483 + 9164
10 driverapp 0x00000001017c8380 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 1880
11 driverapp 0x00000001017cba48 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 648
12 driverapp 0x00000001017cb5fc _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 128
13 driverapp 0x00000001017cb570 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
14 libdispatch.dylib 0x0000000105733bcc _dispatch_call_block_and_release + 32
15 libdispatch.dylib 0x00000001057356c0 _dispatch_client_callout + 20
16 libdispatch.dylib 0x000000010573d354 _dispatch_lane_serial_drain + 736
17 libdispatch.dylib 0x000000010573e0c0 _dispatch_lane_invoke + 448
18 libdispatch.dylib 0x000000010574a644 _dispatch_workloop_worker_thread + 1520
19 libsystem_pthread.dylib 0x00000001da7cc804 _pthread_wqthread + 276
20 libsystem_pthread.dylib 0x00000001da7d375c start_wqthread + 8
It freeze the app for 3-4 seconds and then will continue to run. If I call second time everything works fine.
I've made all the setup as per documentation
First time when I call any function either isAppAvailable, getAppDisplayName, navigate etc I will receive the following error in xcode
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication canOpenURL:]
PID: 2093, TID: 350140, Thread name: (none), Queue name: com.facebook.react.RNLaunchNavigatorQueue, QoS: 0
Backtrace:
4 driverapp 0x00000001016b9bd0 -[LN_LaunchNavigator isMapAppInstalled:] + 232
5 driverapp 0x00000001016af374 -[LN_LaunchNavigator isAppAvailable:] + 120
6 driverapp 0x00000001016bbfe8 -[RNLaunchNavigator isAppAvailable:resolve:reject:] + 156
7 CoreFoundation 0x00000001913b98f4 AF3F8E01-C130-3464-AD40-C5532D273483 + 1222900
8 CoreFoundation 0x0000000191290df8 AF3F8E01-C130-3464-AD40-C5532D273483 + 7672
9 CoreFoundation 0x00000001912913cc AF3F8E01-C130-3464-AD40-C5532D273483 + 9164
10 driverapp 0x00000001017c8380 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 1880
11 driverapp 0x00000001017cba48 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 648
12 driverapp 0x00000001017cb5fc _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 128
13 driverapp 0x00000001017cb570 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
14 libdispatch.dylib 0x0000000105733bcc _dispatch_call_block_and_release + 32
15 libdispatch.dylib 0x00000001057356c0 _dispatch_client_callout + 20
16 libdispatch.dylib 0x000000010573d354 _dispatch_lane_serial_drain + 736
17 libdispatch.dylib 0x000000010573e0c0 _dispatch_lane_invoke + 448
18 libdispatch.dylib 0x000000010574a644 _dispatch_workloop_worker_thread + 1520
19 libsystem_pthread.dylib 0x00000001da7cc804 _pthread_wqthread + 276
20 libsystem_pthread.dylib 0x00000001da7d375c start_wqthread + 8
It freeze the app for 3-4 seconds and then will continue to run. If I call second time everything works fine.
I've made all the setup as per documentation