This plugin watch for notification task and trigger PushNotification.
hoodie-plugin-profile hoodie-utils-plugins
When task is intercepted by notification:change
event, the notification schema should contains:
{
notificationType: 'requestFriend',
from: userId,
to: userId
}
Possible notificationType:
- requestFriend
- acceptedFriend
hoodie install hoodie-plugin-notification
<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>