MOBILE-2567 ios: Fix local notifications in iOS
parent
0fbb1e2fd2
commit
97bb43604b
|
@ -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" />
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue