hoodie-plugin-push-notification

0.1.9 • Public • Published

hoodie-plugin-cordova-notification

This plugin watch for notification task and trigger PushNotification.

Dependencies:

hoodie-plugin-profile hoodie-utils-plugins

Notifictions

When task is intercepted by notification:change event, the notification schema should contains:

  {
    notificationType: 'requestFriend',
    from: userId,
    to: userId
  }

Possible notificationType:

  • requestFriend
  • acceptedFriend

Dependencies

  hoodie install hoodie-plugin-notification

Setup client

  <script src="/_api/_files/hoodie.js"></script> 

for cordova/phonegap users

  <script src="<bowerdir>/hoodie/dist/hoodie.js"></script> 
  <script src="<bowerdir>/hoodie-plugin-notification/hoodie.notification.js"></script> 

Package Sidebar

Install

npm i hoodie-plugin-push-notification

Weekly Downloads

2

Version

0.1.9

License

none

Last publish

Collaborators

  • gabrielmancini