Skip to content

makmu/pwcat

Repository files navigation

Progressive WebApp Experiement

Based on

Setup

$ npm install
$ npm publish

Usage

  • Go to https://makmu.github.io/pwcat/
  • Install PWA on your device
  • Click 'subscribe' and allow notifications
  • Copy subscription string from UI into clipboard
  • Open https://web-push-codelab.glitch.me/
  • Paste subscription string into 'Subscription to Send To' input field
  • Paste following notification string into 'Text to Send' input field:
{
       "notification": {
           "title": "Angular News",
           "body": "Newsletter Available Max!",
           "icon": "assets/main-page-logo-small-hat.png",
           "vibrate": [100, 50, 100],
           "data": {
               "dateOfArrival": "1535453299590",
               "primaryKey": 1
           },
           "actions": [{
               "action": "explore",
               "title": "Go to the site"
           }]
       }
}
  • Hit button 'Send Push Message'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published