I plan to create an application for iOS VoIP (before there were no applications for iOS). I read about Callkit on iOS, thanks to which his application can receive a phone call through its own iPhone call screen.
I read the Callkit api here , which mentions that you can find out if the answer answers.
Looking through this tutorial, and here is the code on which the call is defined:
-(void)reportIncomingCallWithHandle:(NSString *)handle success:(void (^)())success failure:(void (^)(NSError * error))failure { CXCallUpdate *update = [self newCallUpdateWithHandle:handle]; self.callId = [NSUUID UUID]; [self.provider reportNewIncomingCallWithUUID:self.callId update:update completion:^(NSError * _Nullable error) { if (error) { if (failure) failure(error); } else { if (success) { success(); } } }]; }
See success block. So, is there a way to open my application when this success block is completed? Or can I override the default buttons on the callerβs screen to open my application?
I know that there is no way to open the application to receive any notification or event trigger. So maybe, maybe there is some way if I can do the same using Callkit
I sorted it all out, but did not find a hint regarding my above requests. Please help me if this is possible or not.
Choxx source share