For anyone who&#x27;s not familiar with APNs, this new protocol is a huge improvement. Since it uses HTTP&#x2F;2, you can just use an existing HTTP library (which should handle reusing the connection for multiple notifications, too).<p>Here&#x27;s an example client that I wrote in Go for a client that <i>doesn&#x27;t</i> have access to an HTTP&#x2F;2 library. It listens for JSON on stdin. I highlighted the guts:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Sidnicious&#x2F;pushprovider&#x2F;blob&#x2F;49b1f63295229e620bc135e8028c3ef88ff81984&#x2F;pushprovider.go#L53-L107" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Sidnicious&#x2F;pushprovider&#x2F;blob&#x2F;49b1f6329522...</a>