From b61c442fd2bf1e17882a8f9dd03690d99a8b3157 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Sat, 17 Mar 2018 01:22:06 +0100 Subject: [PATCH] fix example --- src/@ionic-native/plugins/fcm/index.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index 9b371567..269937ab 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -33,22 +33,21 @@ export interface NotificationData { * * this.fcm.subscribeToTopic('marketing'); * - * this.fcm.getToken().then(token=>{ - * /* save your token on backend */ + * this.fcm.getToken().then(token => { * backend.registerToken(token); - * }) + * }); * - * this.fcm.onNotification().subscribe(data=>{ + * this.fcm.onNotification().subscribe(data => { * if(data.wasTapped){ * console.log("Received in background"); * } else { * console.log("Received in foreground"); * }; - * }) + * }); * - * this.fcm.onTokenRefresh().subscribe(token=>{ + * this.fcm.onTokenRefresh().subscribe(token => { * backend.registerToken(token); - * }) + * }); * * this.fcm.unsubscribeFromTopic('marketing'); *