Closed bfelbo closed 4 years ago
We're getting 400 - InvalidPushType for our VoIP push because the apns-push-type is not set to voip as it should. See: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns
400 - InvalidPushType
apns-push-type
voip
The simplest way to implement this is likely to detect whether it's a voip push from the topic. If it ends with .voip, it's a VoIP push and the push type should be set accordingly.
.voip
https://github.com/AndrewBarba/apns2/commit/9ad289adef910ca6d7d8a43c1e92edff3ca0e0aa
We're getting
400 - InvalidPushType
for our VoIP push because theapns-push-type
is not set tovoip
as it should. See: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apnsThe simplest way to implement this is likely to detect whether it's a voip push from the topic. If it ends with
.voip
, it's a VoIP push and the push type should be set accordingly.