Push Notification
#
OverviewWe use VOIP services of apple to receive calls in the background and in killed state.
#
PrerequisitesPlease upload your VOIP Certificate to our Console. To know more how to generate and upload VOIP Certificate Click Here.
In your Appdelegetae, register for voip notification by conforming to the following delegates PKPushRegistryDelegate
.
Capabilities |
---|
Voice over IP |
#
Update VOIP tokenUpdate your VOIP token using the below methods when an VOIP token gets updated.
Argument | Description |
---|---|
TOKEN | Apns or Voip Token |
updateDeviceToken
#
Updating Push & VoIP Tokens with After saving your VoIP token using the delegate method, you need to update both VoIPand APNs push tokens to ensure calls and notifications are delivered correctly.
The SDK provides a helper method updateDeviceToken
for this purpose.
Argument | Description |
---|---|
isForceUpdate | Set to true to force update even if tokens haven’t changed. Default is false. |
isSuccess | Returns true if update succeeded, else false. |
updatedVOIPToken | The latest registered VoIP token. |
updatedDeviceToken | The latest registered APNs push token. |
tokenError | Error details if update fails. |
#
Process VOIP request With the didReceiveIncomingPushWith
method, you will receive the call payload. In order to continue processing the call, you must send the payload to the SDK method below.
Argument | Description |
---|---|
PAYLOAD | Payload Dictionary |
DISPLAY_NAME | Optional Name parameter to set the caller's name when reporting to CallKit. |
|