Skip to content

Commit 620887c

Browse files
committed
Add dispatch to main
1 parent 9168d24 commit 620887c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/ios/KlaviyoReactNativeSdkExample/AppDelegate.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ - (BOOL)application:(UIApplication *)application
3434
}
3535

3636
// Start monitoring geofences from background
37-
[KlaviyoBridge monitorGeofencesFromBackground];
37+
dispatch_async(dispatch_get_main_queue(), ^{
38+
[KlaviyoBridge monitorGeofencesFromBackground];
39+
});
3840

3941
// refer to installation step 16 below
4042
NSMutableDictionary *launchOptionsWithURL =

0 commit comments

Comments
 (0)