TiloBox
Back to directory
apns2 project preview

apns2

HTTP/2 Apple Push Notification provider for Go with token and certificate authentication.

LicenseMIT
GitHub stars2.8k
Last commit6 days ago
Tags5 topics
Golang Apns2Http2 Connection PoolApns2 LibDeveloper ToolsApple Push Go
Overview

Why consider apns2?

apns2 is an open-source Go package written by Adam Jones (sideshow). It delivers push notifications to iOS, macOS, watchOS, and tvOS devices using Apple’s HTTP/2 APNs provider API, providing connection pooling, background push support, and automatic TLS renegotiation.

Guided learning

Learn apns2 by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of apns2

apns2 provides a fast, concurrent HTTP/2 Apple Push Notification client for Go backend services.

Quickstart

bash
1go get -u github.com/sideshow/apns2
go
1import "github.com/sideshow/apns2"
2import "github.com/sideshow/apns2/token"
3
4authKey, _ := token.AuthKeyFromFile("AuthKey.p8")
5t := &token.Token{AuthKey: authKey, KeyID: "KEY_ID", TeamID: "TEAM_ID"}
6client := apns2.NewTokenClient(t).Production()
7notification := &apns2.Notification{DeviceToken: "token", Topic: "com.example.app", Payload: []byte(`{"aps":{"alert":"Flash Sale!"}}`)}
8res, _ := client.Push(notification)

apns2 is licensed under the permissive MIT License.

Related tools

More options with a similar category or technology profile.

apns2 FAQs

apns2 is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

apns2 is listed under the MIT license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

apns2 is listed as an alternative to Apple APNs Gateway. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.