Skip to content
/ go2apns Public

Use golang and HTTP/2 to push remote notification to Apple Push Notification service.

License

Notifications You must be signed in to change notification settings

hlouis/go2apns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go2APNS

Current state is in developing, not production ready!

Introduction

Go2APNS use http/2 protocol to send notification to Apple push notification server for iOS remote notification.

Build & Install

Push API

POST value to http://<host>/push, support keys:

  • token: device token
  • expiration: apns-expiration
  • priority: apns-priority
  • topic: apns-topic
  • payload: body content of the message is the JSON string please see The Remote Notification Payload

All apns-* value please see the APNs Provider API document.

Please check the HTTP status:

  • 200: indicate this push success, and there is no other message
  • 4xx: wrong request, will follow a json object to show you the reason
  • 5xx: server internal error, will follow a json object to show you the reason

json object and error status description please see apple APNs Provider document

About

Use golang and HTTP/2 to push remote notification to Apple Push Notification service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published