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'
This commit is contained in:
		
							parent
							
								
									51edb78d40
								
							
						
					
					
						commit
						1c033bf023
					
				| @ -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) => { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user