You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to schedule a local notification on android using a background runner from the docs. However nothing appears in the status bar after the allotted time. The background runner is working as i tested it for setting KV and retrieving it.
within background.js
addEventListener("notiTestEvent", async (resolve, reject, args) => {
try {
let scheduleDate = new Date();
scheduleDate.setSeconds(scheduleDate.getSeconds() + 5);
CapacitorNotifications.schedule([
{
id: 312,
title: "Enterprise Background Runner",
body: "A test message from the Enterprise Background Runner",
scheduleAt: scheduleDate,
},
]);
resolve();
} catch (err) {
console.log("err", err);
reject(err);
}
});
I am trying to schedule a local notification on android using a background runner from the docs. However nothing appears in the status bar after the allotted time. The background runner is working as i tested it for setting KV and retrieving it.
within background.js
function calling event
Heres the repo if it helps
https://github.com/RaafatAburashed1/test-react-noti
The text was updated successfully, but these errors were encountered: