iOS - best practice to send incoming call notifications on VoIP app

前端 未结 2 1610
星月不相逢
星月不相逢 2021-02-14 13:39

The first solution I can think of for the incoming call notification is Apple\'s Push Notification service. However, it is not guaranteed.. there\'s a relatively high chance it

2条回答
  •  天命终不由人
    2021-02-14 14:30

    From appleDoc Apple Developer Docs. (Updated link)

    In iOS 8 and later, voice-over-IP (VoIP) apps register for UIRemoteNotificationTypeVoIP push notifications instead of using this method. Using push notifications eliminates the need for a timeout handler to check in with the VoIP service. Instead, when a calls arrives for the user, the VoIP service sends a VoIP push notification to the user’s device. Upon receiving this notification, the device launches or wakes the app as needed so that it can handle the incoming call.

提交回复
热议问题