Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.03 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.03 KB

Java WebPush Demo application

Try it out

  • Checkout and run the application
  • Visit http://localhost:8080 and then click on subscribe
  • Post a notification by using the following command from linux/mac (or a git-bash terminal in Windows):
curl -X POST \
  http://localhost:8080/notify-all \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -d '{
	"title": "NaturalProgrammer",
	"message": "NaturalProgmmer.com - where quality matters",
	"clickTarget": "http://www.naturalprogrammer.com"
}'

References