MOBILE-2567 core: Fix local notification events
parent
ba46373873
commit
b67a2900eb
|
@ -122,7 +122,7 @@
|
|||
</plugin>
|
||||
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
|
||||
<plugin name="cordova-plugin-zip" spec="^3.1.0" />
|
||||
<plugin name="cordova-plugin-local-notifications-mm" spec="^1.0.10" />
|
||||
<plugin name="cordova-plugin-local-notifications-mm" spec="^1.0.11" />
|
||||
<plugin name="cordova-plugin-file-opener2" spec="^2.0.19" />
|
||||
<plugin name="com-darryncampbell-cordova-plugin-intent" spec="^1.1.0" />
|
||||
<plugin name="cordova-sqlite-evcore-extbuild-free" spec="^0.9.7" />
|
||||
|
|
|
@ -125,6 +125,7 @@ export class CoreLocalNotificationsProvider {
|
|||
this.appDB = appProvider.getDB();
|
||||
this.appDB.createTablesFromSchema(this.tablesSchema);
|
||||
|
||||
platform.ready().then(() => {
|
||||
localNotifications.on('trigger', (notification, state) => {
|
||||
this.trigger(notification);
|
||||
});
|
||||
|
@ -137,6 +138,7 @@ export class CoreLocalNotificationsProvider {
|
|||
this.notifyClick(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
eventsProvider.on(CoreEventsProvider.SITE_DELETED, (site) => {
|
||||
if (site) {
|
||||
|
|
Loading…
Reference in New Issue