IOS 13 Pushkit

I am sending below payload from server, but I am not receiving this in `func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void)` function of PushKit on iOS13 device. Please let me know whats wrong on my side?



{“aps”:{“alert”:{“content-available”: 1, “sound”:“default”, “apns-push-type” : “voip”, “apns-priorty” : 5}}, “notificationId”:“27104008-03ce-40d8-a900-5b0f1610ad57"}

Replies

Hi,

Your push payload is not correct.

apns-push-type must be inside header of the request ,not on the payload body of the notification .Also you dont need to add aps, alert or content-available info into your payload for voip pushes.