docs(push): add registration event example (#1205)

This commit is contained in:
Andrzej Przedecki 2017-03-21 21:38:14 +01:00 committed by Ibby Hadeed
parent 2e93c50b7d
commit 5be6a155e6

View File

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