push-notifications

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i push-notifications

Weekly Downloads

40

Version

1.0.1

License

ISC

Last publish

Collaborators

  • hkirat