Golang Push Notification
Simple system push notification for android/fcm and apns/slideshow by Golang
Setting up:
Use gin framework:
go get -u github.com/gin-gonic/gin
Define job queue: async-job
Job: represents job that can do something (handler), can retry (with config retry times and duration), stateful (init, running...)
Worker: represents worker who can take job, execute job, quit job (if fail)
Manager: represents manager who manage (dispatch job to worker)
Usage:
curl --location --request POST 'http://localhost:8080/push' --header 'Content-Type: application/json' --data-raw '{"to": "device_token", "priority": "high", "title": "this is title", "body": "this is body", "data": { "foo": "bar" } }'
More:
Apns is updating...