- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
_rnTwilioVoice = [bridge moduleForClass:[RNTwilioVoice class]];
[_rnTwilioVoice initPushRegistry];
[_rnTwilioVoice reRegisterWithTwilioVoice];
NSDictionary *configCallkit = @{@"appName": @"AppName"};
[_rnTwilioVoice configCallKit:configCallkit];
// --- Voip Push Notification
// ===== (THIS IS OPTIONAL BUT RECOMMENDED) =====
// --- register VoipPushNotification here ASAP rather than in JS. Doing this from the JS side may be too slow for some use cases
// --- see: https://github.com/react-native-webrtc/react-native-voip-push-notification/issues/59#issuecomment-691685841
[RNVoipPushNotificationManager voipRegistration];
...
return YES;
}