mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
fix example
This commit is contained in:
parent
af75b49aa4
commit
b61c442fd2
@ -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');
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user