mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
docs(push): add registration event example (#1205)
This commit is contained in:
parent
2e93c50b7d
commit
5be6a155e6
@ -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));
|
||||
*
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user