question

Minseo avatar image
Minseo asked

iOS VoIP Push Notification support

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.

(https://developer.apple.com/library/content/documentation/Performance/Conceptual/EnergyGuide-iOS/OptimizeVoIP.html)

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.

Push Notifications
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Minseo avatar image Minseo commented ·

Want to know Playfab has plan to add APNS_VOIP and APNS_VOIP_SANDBOX platforms.

If so, it would be great.

0 Likes 0 ·

1 Answer

·
pfnathan avatar image
pfnathan answered

As indicated on https://api.playfab.com/documentation/Admin/method/SetupPushNotification, we are pushing everything to AWS SNS for Push Notification and does not support VoIP push notification. If you like, please post your “feature” request on to our “feature request” page. Please also note that It will take some time to add a new feature so do not expect features to be added in short time.

Looking at the response; The 4xx range of HTTP errors are specifically for cases where the client has an error in the request so that the service can respond with the specifics of what was wrong with the request. In this case, we respond with "Bad Request," and specify that the request isn't valid thus causing a PushServiceError 1095 as well.

Please take a look at below links for further info on iOS push notification we currently support.

https://api.playfab.com/documentation/Admin/method/SetupPushNotification#error-codes

https://api.playfab.com/docs/tutorials/landing-players/push-notification-basics/push-notifications-for-ios

as for your second question on APNS_VOIP and APNS_VOIP_SANDBOX, Please redirect to "feature request" page as well.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.