andaicee
andaicee

Reputation: 61

How can I implement APNS in the same way WhatsApp does?

I am currently working on an iOS app that allows users to make calls and send messages to eachother, effectively it is WhatsApp with a few extras.

When one of the users is offline, I send an APNS to the other user that brings up a short notification. The notification that is shown works well for messages but when it comes to an incoming call, it would be nice if it stuck around on screen and the phone vibrated for an extended period.

From what I have read, you cannot alter the vibration pattern of an APNS. WhatsApp, however, has managed to do it and I was wondering if anybody had an idea of how they achieve this?

Upvotes: 3

Views: 1056

Answers (1)

Baris Akar
Baris Akar

Reputation: 4965

You should use VoIP Push Notifications (PushKit). These are special push notifications intended to be used for VoIP call notifications.

Some source to get started:

Upvotes: 1

Related Questions