@JavierRefuerzo thanks for the response. Yes I have some code in "didFinishLaunchingWithOptions":
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if ([FIRApp defaultApp] == nil) {
[FIRApp configure];
}
#ifdef FB_SONARKIT_ENABLED
InitializeFlipper(application);
#endif
[GMSServices provideAPIKey:@"..."];
[Intercom setApiKey:@"..." forAppId:@"..."];
[Intercom registerUnidentifiedUser];
[Stripe setDefaultPublishableKey:@"..."];
// Define UNUserNotificationCenter
UNUserNotificationCenter *notifcenter = [UNUserNotificationCenter currentNotificationCenter];
[notifcenter setDelegate: self];
[notifcenter requestAuthorizationWithOptions:(UNAuthorizationOptionBadge | UNAuthorizationOptionAlert
|UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) {
// check this with break point
NSLog(@"Succes %d", granted);
}];
[[UIApplication sharedApplication] registerForRemoteNotifications];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"..." initialProperties:nil];
RNBridgeInstanceHolder *instance = [RNBridgeInstanceHolder sharedManager];
instance.bridge = bridge;
instance.rootView = rootView;
return YES;
}