From 5be6a155e6ec8dad3771ce4a2c8f12897882b02f Mon Sep 17 00:00:00 2001 From: Andrzej Przedecki Date: Tue, 21 Mar 2017 21:38:14 +0100 Subject: [PATCH] docs(push): add registration event example (#1205) --- src/@ionic-native/plugins/push/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/@ionic-native/plugins/push/index.ts b/src/@ionic-native/plugins/push/index.ts index cba37b291..916939e15 100644 --- a/src/@ionic-native/plugins/push/index.ts +++ b/src/@ionic-native/plugins/push/index.ts @@ -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)); * *