alexeyxo / swift-apns

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

Not working .. at least with iOS 10 and swift 3.0 #6

Closed sergiobuonanno closed 7 years ago

sergiobuonanno commented 7 years ago

I only succeeded to get statusCode 403, translated from your library in "Bad Certificate" (not exactly the same meaning of the HTTP status code 403). My certificate is 100% genuine p12 certificate, working, for example, with NWPusher (another iOS library you can find on GitHub) and from other server endpoints. I would have liked to use your library because NWPusher is still written in legacy Obj-C code...but unfortunately I couldn't manage to make it work... have you any hint ? Have you tried to send a push notification to another iOS device ?... sorry for the stupid question but your examples do not work even with a basic test application in Xcode 8.0 (by just copying and pasting your code it didn't work for me).

adirburke commented 7 years ago

I had the same problems capture