From 97bb43604be7f31cac54b59a864ad24af5d60224 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 5 Sep 2018 15:34:40 +0200 Subject: [PATCH] MOBILE-2567 ios: Fix local notifications in iOS --- config.xml | 2 +- src/providers/local-notifications.ts | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/config.xml b/config.xml index 33e6375ec..36612b734 100644 --- a/config.xml +++ b/config.xml @@ -122,7 +122,7 @@ - + diff --git a/src/providers/local-notifications.ts b/src/providers/local-notifications.ts index 29ea131a2..25e51da9e 100644 --- a/src/providers/local-notifications.ts +++ b/src/providers/local-notifications.ts @@ -497,6 +497,8 @@ export class CoreLocalNotificationsProvider { /** * Show an in app notification popover. + * This function was used because local notifications weren't displayed when the app was in foreground in iOS10+, + * but the issue was fixed in the plugin and this function is no longer used. * * @param {CoreILocalNotification} notification Notification. */ @@ -594,11 +596,6 @@ export class CoreLocalNotificationsProvider { * @return {Promise} Promise resolved when stored, rejected otherwise. */ trigger(notification: CoreILocalNotification): Promise { - if (this.platform.is('ios') && this.platform.version().num >= 10) { - // In iOS10 show in app notification. - this.showNotificationPopover(notification); - } - const entry = { id: notification.id, at: parseInt(notification.at, 10)