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

@ -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');
*