Skip to content

Commit

Permalink
docs(firebase): add onNotificationOpen usage example (#2835)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimshik100 authored and danielsogl committed Jan 4, 2019
1 parent 6ef854f commit 448e064
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/@ionic-native/plugins/firebase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`));
*
Expand Down

0 comments on commit 448e064

Please sign in to comment.