How to use UIRemoteNotificationTypeVoIP?

From the documentation for setKeepAliveTimeout: handler: UIApplication method:

In iOS 8 and later, Voice over IP (VoIP) applications are registered for UIRemoteNotificationTypeVoIP notifications instead of using this method. Using push notifications eliminates the need for a timeout handler to register with the VoIP service. Instead, when calls are made to the user, the VoIP service sends a VoIP notification to the user's device. After receiving this notification, the device starts or wakes the application as necessary so that it can handle the incoming call.

But there is nothing I can do about it. Is this a thing?

+6
source share
1 answer

If anyone is also confused by this documentation, they probably mean the PushKit Framework and PKPushTypeVoIP introduced in WWDC 2014, β€œWriting Energy-Efficient Code,” Part 2

+6
source

Source: https://habr.com/ru/post/977335/


All Articles