alexeyxo / swift-apns

Swift Framework for sending Apple Push Notification over HTTP/2 API
Apache License 2.0
154 stars 20 forks source link

BadDeviceToken error with correct device token #3

Closed pfurtek closed 8 years ago

pfurtek commented 8 years ago

Hello!

I'm trying to use your example code for my application. I'm getting the device token correctly from the app, but no matter what I do I always get the BadDeviceToken error.

Do you know why would that happen? The app I'm trying to send it to is in Enterprise distribution, and I'm using the certificate downloaded from apple member center for distribution.

Could you also explain to me what should go as the "topic"? Bundle id of the sending app or the receiving app?

Any help and ideas would be greatly appreciated!

Thank you!

sergiobuonanno commented 7 years ago

I have the same problem. I don't understand why the post was closed without answer