@TOTVS/MINGLE-IONIC-PUSH-NOTIFICATION
Provides basic functionality for Firebase Cloud Messaging
Installation
Using npm:
$ npm install --save @totvs/mingle-ionic-push-notification
import { PushNotificationPlugin } from @totvs/mingle-push-notification
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();