1

I am working on a video/audio call app. Now when my phone is locked and another user is calling me then from the lock screen I will get a notification and if I swipe the notification then the call automatically received. I used UILocalNotification for getting notification.

But I don't want like this. I want to see the UI same as when another user call me when my phone is unlocked that is there will be receive/reject option with my UI. I want to receive call like Viber or skype. How can I do that?

sazid008
  • 175
  • 2
  • 14

1 Answers1

5

You should be looking into the PushKit framework form Apple.

The PushKit framework provides the classes for your iOS apps to receive VoIP pushes from remote servers. VoIP pushes provide the functionality that VoIP apps need to perform on-demand processing of the push before displaying a notification to the user.

Apple Documentation

There are some tutorials might help you.

Tutorial 1

Tutorial 2

Update

To display the system-calling UI for your app's VoIP services you can use CallKit.

CallKit documentation

Sample code from Apple

Here is a tutorial which explains it well.

http://www.techjini.com/blog/enhance-voip-app-user-experience-using-pushkit-callkit/

https://www.raywenderlich.com/150015/callkit-tutorial-ios

Bilal
  • 18,478
  • 8
  • 57
  • 72