push-notifications
v1.0.1
Published
Push notifications for socket.io
Downloads
128
Readme
Push Notifications
Push Notification library written on top of socket.io
Send push notifications to clients in node.js.
Installation and Setup
- npm install push-notifications
###SERVER
var pushNotifications = require("push-notifications")
pushNotifications.push(socket, options)
title : Title of the Notification
body : Body of the notification
icon : Link to the image of the icon
##CLIENT
- include notificationLogger.js
-
<script src="js/pushNotifications.js"></script>
-<script src="https://raw.githubusercontent.com/hkirat/push\-notifications/master/pushNotifications.js"></script>
Browser Support
Works best on latest versions of Google Chrome, Firefox and Safari.