Skip to content

Commit

Permalink
docs(push): add registration event example (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrzej Przedecki authored and ihadeed committed Mar 21, 2017
1 parent 2e93c50 commit 5be6a15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/@ionic-native/plugins/push/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ export type PushEvent = 'registration' | 'error' | 'notification';
*
* pushObject.on('notification').subscribe(notification => console.log('Received a notification', notification));
*
* pushObject.on('registration').subscribe(registration => console.log('Device registered', registration));
*
* pushObject.on('error').subscribe(error => console.error('Error with Push plugin', error));
*
*
Expand Down

0 comments on commit 5be6a15

Please sign in to comment.