cordova-plugin-local-notifications icon indicating copy to clipboard operation
cordova-plugin-local-notifications copied to clipboard

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

Open bhandaribhuminpfizer opened this issue 3 years ago • 2 comments

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

bhandaribhuminpfizer avatar May 03 '21 13:05 bhandaribhuminpfizer

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',
        };

bhandaribhuminpfizer avatar May 05 '21 03:05 bhandaribhuminpfizer

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.

rahmadid avatar May 05 '21 18:05 rahmadid