MOBILE-2567 ios: Fix local notifications in iOS

main
Dani Palou 2018-09-05 15:34:40 +02:00
parent 0fbb1e2fd2
commit 97bb43604b
2 changed files with 3 additions and 6 deletions

View File

@ -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.11" />
<plugin name="cordova-plugin-local-notifications-mm" spec="^1.0.13" />
<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" />

View File

@ -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<any>} Promise resolved when stored, rejected otherwise.
*/
trigger(notification: CoreILocalNotification): Promise<any> {
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)