IOS 14.5 Notification is not showing in status bar when app in foreground
bhandaribhuminpfizer opened this issue · comments
BhandariBhumin commented
Notification works on background but in foreground got only notification BEEP
sound.
BhandariBhumin commented
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',
};
rahmadid commented
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.