@totvs/mingle-ionic-push-notification
v1.0.0-20190522.1
Published
Push notification Ionic package
Downloads
4
Maintainers
Keywords
Readme
@TOTVS/MINGLE-IONIC-PUSH-NOTIFICATION
Provides basic functionality for Firebase Cloud Messaging
Installation
Using npm:
$ npm install --save @totvs/mingle-ionic-push-notification
// using ES6 modules
import { PushNotificationPlugin } from @totvs/mingle-push-notification
// using CommonJS modules
var pushNotification = require('@totvs/mingle-push-notification')
Usage
Create an instance of the PushNotificationPlugin:
var pushNotification = new PushNotificationPlugin();
init
This method is responsible for connecting to the FCM.
this.pushNotification.init();
unRegister
This method is responsible for terminating the connection to FCM.
this.pushNotification.unRegister();