sideshow / apns2

⚡ HTTP/2 Apple Push Notification Service (APNs) push provider for Go — Send push notifications to iOS, tvOS, Safari and OSX apps, using the APNs HTTP/2 protocol.
MIT License
3.01k stars 335 forks source link

Apple voip push support? #71

Closed zeljko-bulatovic closed 7 years ago

zeljko-bulatovic commented 7 years ago

Hi,

Is this library support apple voip push? If yes, can you provide us example how to send this kind of notification?

Thanks !

sideshow commented 7 years ago

@zeljko-bulatovic my understanding from reading the Apple docs is that it should support VOIP, without modification. It looks like you have to create a seperate certificate with the correct provisioning credentials, change the code on the iOS side and use a different topic to push to but everything else looks the same. I will keep this issue open until someone can confirm (hopefully you) by way of building an example app to test. Thanks

zeljko-bulatovic commented 7 years ago

Hi,

Yes you are correct!

Separate certificate should be provided, with VOIP push support, and very important is not to provide topic for the notification on the server side, else you will receive error like "DeviceTokenNotForTopic"!

For iOS side, just follow any tutorial for voip push notifications, and everything should work correctly!

sideshow commented 7 years ago

That great, @zeljko-bulatovic So were you able to get VOIP push going without modification to APNS2? If so I will go ahead and close this and add it to the readme.

zeljko-bulatovic commented 7 years ago

Yes, everything worked without any modifications to your library :)

sideshow commented 7 years ago

Awesome! Thanks