MOBILE-3039 local-notif: Fix event listening

In the plugin documentation it says there is an event named 'add', but in Ionic Native is called 'schedule'
main
Dani Palou 2019-05-21 12:34:23 +02:00
parent 51edb78d40
commit 1c033bf023
1 changed files with 2 additions and 2 deletions

View File

@ -136,8 +136,8 @@ export class CoreLocalNotificationsProvider {
this.handleEvent('cancel', notification);
});
this.addSubscription = localNotifications.on('add').subscribe((notification: ILocalNotification) => {
this.handleEvent('add', notification);
this.addSubscription = localNotifications.on('schedule').subscribe((notification: ILocalNotification) => {
this.handleEvent('schedule', notification);
});
this.updateSubscription = localNotifications.on('update').subscribe((notification: ILocalNotification) => {