HTTP/2 Protocol for iOS Push Notifications
dblog.laulkar.com
HTTP/2 Protocol for iOS Push Notifications
1–10 of 14 posts
Re: HTTP/2 Protocol for iOS Push Notifications
#2Here's an example client that I wrote in Go for a client that doesn't have access to an HTTP/2 library. It listens for JSON on stdin. I highlighted the guts:
https://github.com/Sidnicious/pushprovider/blob/49b1f6329522...
Re: HTTP/2 Protocol for iOS Push Notifications
#3Does anyone know why Apple uses certificates instead of API keys (a la GCM) for authorization?
Re: HTTP/2 Protocol for iOS Push Notifications
#4The old APNs flow seemed overly complex, especially in comparison to GCM. This seems like a big improvement. Does anyone know why Apple uses certificates instead of API keys (a la GCM) for authorization?
Re: HTTP/2 Protocol for iOS Push Notifications
#5The old APNs flow seemed overly complex, especially in comparison to GCM. This seems like a big improvement. Does anyone know why Apple uses certificates instead of API keys (a la GCM) for authorization?
Also, having the certificate helps in signing and encrypting the notification packets triggered from the server.
Re: HTTP/2 Protocol for iOS Push Notifications
#6Re: HTTP/2 Protocol for iOS Push Notifications
#7The old APNs flow seemed overly complex, especially in comparison to GCM. This seems like a big improvement. Does anyone know why Apple uses certificates instead of API keys (a la GCM) for authorization?
Re: HTTP/2 Protocol for iOS Push Notifications
#8Re: HTTP/2 Protocol for iOS Push Notifications
#9Re: HTTP/2 Protocol for iOS Push Notifications
#10For anyone who's not familiar with APNs, this new protocol is a huge improvement. Since it uses HTTP/2, you can just use an existing HTTP library (which should handle reusing the connection for multiple notifications, too). Here's an example client that I wrote in Go for a client that doesn't have access to an HTTP/2 library. It listens for JSON on stdin. I highlighted the guts: https://github.com/Sidnicious/pushprov…
on line 62 you do specify HTTP/2: Transport: &http2.Transport
> "Since it uses HTTP/2, you can just use an existing HTTP library (which should handle reusing the connection for multiple notifications, too)."
I doubt many non-HTTP/2 implementations will keep connections open and continually check for more data - why wait and read for Response(s) if no Requests were sent? Let alone an HTTP version sent they do not understand.