docs(firebase): add onNotificationOpen usage example (#2835)

This commit is contained in:
Dima Vishnevetsky 2019-01-04 23:06:37 +02:00 committed by Daniel Sogl
parent 6ef854f4f1
commit 448e064012

View File

@ -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}`));
*