Notification is not triggered for audio/video calls when application in open state - iOS
Hello,
I am using the below code to receive the call notification. But It does not triggered. I have referred the code snippet from the sample “RainbowiOSSDKWebRTC” for iOS Mobile. Please help me out to resolve
“[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didAddCall:) name:kTelephonyServiceDidAddCallNotification object:nil];”
-(void)didAddCall:(NSNotification *)notification {
if(![NSThread isMainThread]){
dispatch_async(dispatch_get_main_queue(), ^{
[self didAddCall:notification];
});
return;
}
if([notification.object class] == [RTCCall class]){
NSLog(@"didAddCall notification");
self.call = (RTCCall *) notification.object;
self.isMPCall = NO;
[self showCallView:self.call];
}
}
-
Hi Karthik,
Did you see the callkit visual interface on your iphone ?
If yes, it means that you have correctly setup your application.
If not, you need to configure callkit by calling the method `
startCallKitWithIncomingSoundName`.
Before moving deeper, could you check that point ?
Regards,
Olivier
-
Did you see the callkit visual interface on your iphone - Yes
I have integrated as follows
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
ServicesManager.sharedInstance()?.setAppID(Rainbow.kAppID, secretKey: Rainbow.kSecretKey)
ServicesManager.sharedInstance()?.rtcService.startCallKit(withIncomingSoundName: "incoming-call.mp3", iconTemplate: "", appName: "RGM")
return true
}
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires