Search code examples
iosxamarinapple-push-notificationsapns-sharp

Voip notifications are not receiving from Apns in debug mode in xamarin


I am working on a calling app where we are using pushkit notifications the problem is that I am not receiving notifications in debug mode with a Development profile. I am having the certificates installed and push notification certificates uploaded on App Identifier on the Apple account.

Whereas it is working in release mode. On the server-side, we are using APNs


Solution

  • Making few minor corrections in APNS server-side code fixed the issue

    request.Headers.Add("apns-id", Guid.NewGuid().ToString("D"));

    request.Headers.Add("apns-push-type", "voip");

    Hope this will help someone else facing this issue