Does Azure Push Notification Hub supports iOS Push

2019-08-19 04:07发布

I found a few posts related Azure notification hub support on PushKit VoIP notifications:

https://social.msdn.microsoft.com/Forums/ie/en-US/afda14fe-1218-4ca1-a1ee-205ccd241d1a/support-for-apple-voip-pushkit-push-notifications?forum=notificationhubs

https://social.msdn.microsoft.com/Forums/azure/en-US/39b4e1cd-842f-4562-bab5-119d5f6175cd/send-ios-voip-pushes?forum=notificationhubs

Does GCM works with iOS PushKit framework?

There's no official confirmation of the support, I did try myself by using same APN HTTP/2 configuration on my notification hub which you can use for either APN Notifications or PushKit VoIP Notifications but always got invalid token on registration to notification hub.

Have anyone make this work with Azure notification hubs? Is there support for this or not?

2条回答
Animai°情兽
2楼-- · 2019-08-19 04:28

It seems to be supported if you use Authentication Mode Certificate with a VoIP Services Certificate but not if you use Authentication Mode Token with Token-based (HTTP/2) Authentication for APNS.

So to get this working use a VoIP Services Certificate and on Apple Notification Hub Configuration set Authentication Mode Certificate with this VoIP certificate.

查看更多
再贱就再见
3楼-- · 2019-08-19 04:36

I test with Certification mode and VoIP Certificate, but PushKit delegation method which is

pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith....

was not trigged.

This method was trigged:

application(_ application: UIApplication, didReceiveRemoteNotification

查看更多
登录 后发表回答