mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 10:36:14 +08:00
docs(firebase): add onNotificationOpen usage example (#2835)
This commit is contained in:
parent
6ef854f4f1
commit
448e064012
@ -19,6 +19,9 @@ import { Observable } from 'rxjs/Observable';
|
||||
* .then(token => console.log(`The token is ${token}`)) // save the token server-side and use it to push notifications to this device
|
||||
* .catch(error => console.error('Error getting token', error));
|
||||
*
|
||||
* this.firebase.onNotificationOpen()
|
||||
* .subscribe(data => console.log(`User opened a notification ${data}`));
|
||||
*
|
||||
* this.firebase.onTokenRefresh()
|
||||
* .subscribe((token: string) => console.log(`Got a new token ${token}`));
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user