Search code examples
apple-push-notificationsswift2http2

Communicate with APNS server over HTTP2 in Swift2


does anyone know how to use the new APNS provider API from Apple that was introduced in a Session of the WWDC2015? For my tests I used PushMeBaby(a OpenSource Push server from github). But this little App won't work anymore in the future. has someone implemented a HTTP2 client in Swift yet?


Solution

  • I'm now using this Code from Github.

    For me it's actually easier to use the APNSNetwork Class directly, so i don't have to mess up with Carthage.

    The Class is very easy to use and available for Swift2 and Swift3.

    I hope this will help you in your Project ;-)

    Best regards, Michael