web-push-sample

April 12, 2016 ยท View on GitHub

ServiceWorker WebPushNotification sample / demo script.

WebPush ruby gem here. https://github.com/zaru/webpush

usage

$ php -S localhost:9999

open http://localhost:9999

$ curl --header "Authorization: key=API_KEY" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"endpoint\"]}"