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

This branch is 11 commits ahead of, 11 commits behind guangmean/OwnProvider:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 17, 2021
f5bba4c · Jun 17, 2021

History

29 Commits
Nov 5, 2019
Nov 11, 2019
Jun 17, 2021
Sep 23, 2018
Dec 5, 2020
Mar 24, 2021
Sep 23, 2018
Jul 7, 2020
Jul 7, 2020
May 28, 2021

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%