{"repo":"sideshow/apns2","free":true,"listed":false,"github":"https://github.com/sideshow/apns2","clone":"git clone https://github.com/sideshow/apns2.git","description":"⚡ HTTP/2 Apple Push Notification Service (APNs) push provider for Go — Send push notifications to iOS, tvOS, Safari and OSX apps, using the APNs HTTP/2 protocol.","language":"Go","stars":3187,"topics":["apns","notifications","apple","http2","golang","apns-http","apns2","jwt-token","jwt","safari-push-notifications"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"APNS/2 APNS/2 is a go package designed for simple, flexible and fast Apple Push Notifications on iOS, OSX and Safari using the new HTTP/2 Push provider API. Features - Uses new Apple APNs HTTP/2 connection - Fast - See notes on speed - Works with go 1.7 and later - Supports new Apple Token Based Authentication (JWT) - Supports new iOS 10 features such as Collapse IDs, Subtitles and Mutable Notifications - Supports new iOS 15 features interruptionLevel and relevanceScore - Supports persistent connections to APNs - Supports VoIP/PushKit notifications (iOS 8 and later) - Modular & easy to use - Tested and working in APNs production environment Install - Make sure you have Go installed and have set your GOPATH. - Install apns2: If you are running the test suite you will also need to install testify: Example JWT Token Example Instead of using a .p12 or .pem certificate as above, you can optionally use APNs JWT Provider Authentication Tokens . First you will need a signing key ( .p8 file), Key ID and Team ID from Apple. Once you have these details, you can create a new client: - You can use one APNs signing key to authenticate tokens for multiple apps. - A signing key works for both the development and production environments. - A signing key doesn’t expire but can be revoked. Notification At a minimum, a Notification needs a DeviceToken , a Topic and a Payload . You can also set an optional ApnsID , Expiration or Priority . Payload You can use raw bytes for the notification.Payloa","default_branch":null,"files":null,"tree":[],"storefront":"/r/sideshow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sideshow/apns2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}