Wonder if it's working or I'm doing it wrong.
There are many advantages to using PushKit to receive VoIP pushes:
- The device is woken only when VoIP pushes occur, saving energy.
- Unlike standard push notifications, which the user must respond to before your app can perform an action, VoIP pushes go straight to your app for processing.
- VoIP pushes are considered high-priority notifications and are delivered without delay.
- VoIP pushes can include more data than what is provided with standard push notifications.
- Your app is automatically relaunched if it’s not running when a VoIP push is received.
- Your app is given runtime to process a push, even if your app is operating in the background.
Following is the result of SetupPushNotification Admin API Call with VoIP cert.
{ "code": 400, "status": "BadRequest", "error": "PushServiceError", "errorCode": 1095, "errorMessage": "Invalid parameter: Attributes Reason: You provided a certificate of type VoIP, which cannot be used to create an application of type iOS Production. Please select an application of type VoIP or provide a certificate of type iOS Production" }
Thank you.