Has anyone been able to get this plugin to work on a PWA? I am able to ask for permission on android (ios doesn’t support this apparently) devices but the notification never shows up after I schedule it. I pretty much just copy and pasted the code from the documentation:
import { Plugins } from '@capacitor/core';
const { LocalNotifications } = Plugins;
const notifs = await LocalNotifications.schedule({
notifications: [
{
title: "Title",
body: "Body",
id: 1,
schedule: { at: new Date(Date.now() + 1000 * 5) },
sound: null,
attachments: null,
actionTypeId: "",
extra: null
}
]
});
console.log('scheduled notifications', notifs);