0
我在我的離子3應用程序中實施推送通知FCM,我想以漂亮的方式顯示它。現在,我只是在收到任何通知時才顯示警報。 我正在尋找另一種方式來顯示它顯示推送通知在漂亮的方式離子3
ionViewDidLoad() {
FCMPlugin.onNotification(function (data) {
if (data.wasTapped) {
//Notification was received on device tray and tapped by the user.
alert(data.message);
} else {
//Notification was received in foreground. Maybe the user needs to be notified.
alert(data.message);
}
});
FCMPlugin.onTokenRefresh(function (token) {
alert(token);
});
}