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

guangmean/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.15 darwin/amd64

Build & Install for Linux server

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o ownprovider  main.go
/where/your/privider/install/ownprovider

Push Alert Message

curl -X POST "http://127.0.0.1:27953/ownprovider/inner/push" -d 'payload={"aps":{"alert":{"title":"Hello","body":"Baby"},"badge":1,"sound"     :"default","type":"6"}}' -d 'topic=com.example.app&env=sandbox&token=YourDeviceToken'

Push VoIP Message - Note: VoIP device token is different with alert device token

curl -X POST "http://127.0.0.1:27953/ownprovider/inner/push" -d 'payload={"aps":{"alert":{"title":"Hello","body":"Baby"},"badge":1,"sound"     :"default","type":"6"}}' -d 'topic=com.example.app&voip=voip&env=sandbox&token=YourVoIPDeviceToken'

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