Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 379 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 379 Bytes

web-push-sample

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\"]}"