This repository contains a working sample application that uses Beams web notifications.
An example server, complete with publishing & user authentication can be found in server.js
An example client can be found in public/index.html
- Download this repository
- Install dependencies with
yarn
ornpm install
- Run the server with
yarn start
ornpm start
- Visit
http://localhost:3000
in Google Chrome and accept the notification permissions prompt - Visit
http://localhost:3000/publish
in another tab - Get a push notification!
- Remove the notification permission to prevent getting notified in future!
Warning: Running this example will authenticate your browser as "alice" with a default Beams instance. Either use your own credentials in server.js
or remember to remove the notification permission when you're done. Otherwise you may get mysterious notifications from strangers!