Push Notification Server written by Go.
- prepare cert.pem, and key.pem along with this guide
move to the directory where cert.pem and key.pem exist.
- download binary
- execute mpush binary (e.g. ./mpush)
you should install API client, like Postman, CocoaRestClient.
on client
you can create request like this.
key | value | required |
---|---|---|
token | comma separated token list | yes |
body | message body | yes |
badge | badge number (default: 0) | no |
sound | sound file name | no |
custom | json formatted text for custom payload | no |
$ go get github.com/tools/godep
$ godep restore
Before you send pull request, I'd like you to type "go fmt *.go". :3