UNPKG

pushkit

Version:

Everything you need to enable Web Push Notification in your Node.JS web application. Uses the browser's delivery channel to send push notification(Free of cost), which means no extra third-party service (except for the browser's own delivery channel). Wor

44 lines 1.73 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="pushkit.png" type="image/x-icon"> <link rel="stylesheet" href="style.scss"> <title>Pushkit Client Example</title> </head> <body> <a target="_blank" href="https://github.com/theanam/pushkit" class="gh"> <img src="gh.png" alt="Github"> </a> <div class="container"> <img class="pklogo" src="pushkit.png" alt="Pushkit"> <div class="startbtn"> <div class="start"> Enable Push Notification </div> </div> <div class="loader hidden"> <div class="loaderinner"></div> <div class="msg">Registering for push notification. Please press allow when asked</div> </div> <div class="main hidden"> <div class="message"></div> <div class="controls hidden"> <textarea class="regobj"></textarea> <div class="copy" data-clipboard-target=".regobj"> COPY </div> <div class="info"> You can use this push registration to send notification to this page.<br> You will receive notifications <b>even if this window is closed</b>. </div> <div class="golink"> Copy the config and Test Sending Push notification using Pushkit Backend, <br/> <b><a target="_blank" href="https://pushkit.herokuapp.com/">From this link</a></b> </div> </div> </div> </div> <script src="app.js"></script> </body> </html>