IOS Can I open my VoIP application when answering a call using Callkit?

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.

0
source share
2 answers

I ran into the same problem. The behavior changes depending on whether the device is locked or not.

  • Blocked: The system call screen appears. You can run the application in the background, including viewing transitions. However, the user will see a system call screen, although your application is presented under the view. Since the device is locked, deep links also do not work.
  • Unlocked: The call screen is similar, but as soon as the user answers the call, the application will be presented.

As you know, we can change the button icon on the calling screen that the application opens, and that is the best we can do at the moment.

+4
source

You cannot open your own VoIP application or the user interface of your application from CallKit. Using can use it like Whatsapp does.

means that you can wake your application from the background without using local notification. And OS will display the default input screen. You do not need to process anything during a conversation. CallKit is specifically designed to improve VoIP applications by receiving calls in the background, making outgoing calls, managing the call directory and blocking users.

+1
source

All Articles