cordova-plugin-local-notifications
cordova-plugin-local-notifications copied to clipboard
IOS 14.5 Notification is not showing in status bar when app in foreground
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.