I am trying to implement Capacitor LocalNotification plugin.
import { Plugins, CameraResultType } from '@capacitor/core';
const { LocalNotifications } = Plugins;
In the code below like like
schedule() {
console.log('----')
LocalNotifications.schedule({
notifications: [
{
title: "aaaa",
body: "Body",
id: 1,
smallIcon: 'house',
actionTypeId: 'OPEN_PRODUCT',
schedule: {
every: "minute"
},
extra: null
}
]
});
}
I am testing on ios simulator, the method is getting called and in Xcode-debug i am getting like this:
To Native -> LocalNotifications schedule 1850642
⚡️ TO JS {"notifications":[{"id":"1"}]
But notification not showing in simulator.
I am not using cordova/ionic-native in this project. Please help if i need to run some npm package etc to get this to work.