1.0.1 • Published 8 years ago

push-notifications v1.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

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.