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