Update index.ts

This commit is contained in:
KULDIP PIPALIYA 2018-03-02 02:00:17 +05:30 committed by GitHub
parent f11be24f74
commit af75b49aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,13 +31,14 @@ export interface NotificationData {
*
* ...
*
* fcm.subscribeToTopic('marketing');
* this.fcm.subscribeToTopic('marketing');
*
* fcm.getToken().then(token=>{
* this.fcm.getToken().then(token=>{
* /* save your token on backend */
* backend.registerToken(token);
* })
*
* fcm.onNotification().subscribe(data=>{
* this.fcm.onNotification().subscribe(data=>{
* if(data.wasTapped){
* console.log("Received in background");
* } else {
@ -45,11 +46,11 @@ export interface NotificationData {
* };
* })
*
* fcm.onTokenRefresh().subscribe(token=>{
* this.fcm.onTokenRefresh().subscribe(token=>{
* backend.registerToken(token);
* })
*
* fcm.unsubscribeFromTopic('marketing');
* this.fcm.unsubscribeFromTopic('marketing');
*
* ```
* @interfaces