fix example

This commit is contained in:
Daniel Sogl 2018-03-17 01:22:06 +01:00 committed by GitHub
parent af75b49aa4
commit b61c442fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,9 +34,8 @@ export interface NotificationData {
* this.fcm.subscribeToTopic('marketing');
*
* this.fcm.getToken().then(token => {
* /* save your token on backend */
* backend.registerToken(token);
* })
* });
*
* this.fcm.onNotification().subscribe(data => {
* if(data.wasTapped){
@ -44,11 +43,11 @@ export interface NotificationData {
* } else {
* console.log("Received in foreground");
* };
* })
* });
*
* this.fcm.onTokenRefresh().subscribe(token => {
* backend.registerToken(token);
* })
* });
*
* this.fcm.unsubscribeFromTopic('marketing');
*