Skip to content

An APNS Provider Server for iOS which can be launched on Mac, Linux and Windows. Build your own Apple Push Notification Provider Server even you are not a developer

License

Notifications You must be signed in to change notification settings

xojo/OwnProvider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OwnProvider

An APNs Provider Server which based on JWT auth for iOS. Build your own Apple Provider Server even you are not a developer.

Env

go version go1.11 darwin/amd64

Build & Run

go build -o ownprovider
/where/your/provider/is/installed/ownprovider

Push a Message

curl -X POST "http://127.0.0.1:27953/api/notify" -d 'bundleid=YourBundleId&token=YourDeviceToken&payload=%7B%22aps%22:%7B%22alert%22:%22Hello%22%7D%7D'

URL Parameters

env - Set this value to "sandbox" to use the development APNs server.
type - The type of message being sent. Can be one of "alert", "background", "voip", "complication", "fileprovider", "mdm".
token - The device token to send this message to.
payload - The APNs payload.
bundleid - The app's bundle identifier.
expiration - The number of seconds from the current time when this notification expires and should no longer be delivered. Zero (the default) indicates that APNs should only attempt to deliver once. This value cannot be greater than 15777000 (6 months in seconds).
priority - The delivery priority. Can be any value from 0 (No Priority) to 10 (Highest Priority, Default).
collapseid - An identifier for collapsing multiple push notifications in the notification center.
teamid - Your Apple Team Identifier.
keyid - Your APNs token key id.

About

An APNS Provider Server for iOS which can be launched on Mac, Linux and Windows. Build your own Apple Push Notification Provider Server even you are not a developer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%