katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOS 14.5 Notification is not showing in status bar when app in foreground

bhandaribhuminpfizer opened this issue · comments

Notification works on background but in foreground got only notification BEEP sound.

Here is my code

 const scheduledDateObject = scheduledDateWithTime.toDate();
        const body = {
          id: 1,
          icon: 'res://ic_popup_reminder',
          title: notificationTitle,
          // text: `at ${scheduledDateObject.toLocaleTimeString()} `,
          trigger: { at: scheduledDateObject },
          foreground: true,
          priority: 2,
          channel: 'Med',
          channelDescription: 'Med',
        };

Hi all, perhaps you can try this fork, it is more recent and still maintained (to my knowledge):
https://github.com/timkellypa/cordova-plugin-local-notifications

Hope it helps. Thanks.