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
@ -33,22 +33,21 @@ export interface NotificationData {
|
|||||||
*
|
*
|
||||||
* this.fcm.subscribeToTopic('marketing');
|
* this.fcm.subscribeToTopic('marketing');
|
||||||
*
|
*
|
||||||
* this.fcm.getToken().then(token=>{
|
* this.fcm.getToken().then(token => {
|
||||||
* /* save your token on backend */
|
|
||||||
* backend.registerToken(token);
|
* backend.registerToken(token);
|
||||||
* })
|
* });
|
||||||
*
|
*
|
||||||
* this.fcm.onNotification().subscribe(data=>{
|
* this.fcm.onNotification().subscribe(data => {
|
||||||
* if(data.wasTapped){
|
* if(data.wasTapped){
|
||||||
* console.log("Received in background");
|
* console.log("Received in background");
|
||||||
* } else {
|
* } else {
|
||||||
* console.log("Received in foreground");
|
* console.log("Received in foreground");
|
||||||
* };
|
* };
|
||||||
* })
|
* });
|
||||||
*
|
*
|
||||||
* this.fcm.onTokenRefresh().subscribe(token=>{
|
* this.fcm.onTokenRefresh().subscribe(token => {
|
||||||
* backend.registerToken(token);
|
* backend.registerToken(token);
|
||||||
* })
|
* });
|
||||||
*
|
*
|
||||||
* this.fcm.unsubscribeFromTopic('marketing');
|
* this.fcm.unsubscribeFromTopic('marketing');
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user