I’m using https://github.com/katzer/cordova-plugin-local-notifications for implementing local notification in the android app. I’m trying to issue a local notification every day at a particular time, say, 10 am.
I tried the following code:-
cordova.plugins.notification.local.schedule([{
id:1,
title: 'Welcome Back',
smallIcon: 'res://notif',
color:'F53C3C',
text: 'We prepared a bunch of quotes just for you',
foreground: true
},{
id:2,
title:"Let's read some quotes",
text:"It's time to get some motivation",
at:time1,
smallIcon: 'res://notif',
color:'F53C3C',
foreground:true,
trigger:{
every:{
hour:23,
minute:0,
}
}
}]);
In this case, app keeps issuing notification for a complete minute while it should only issue notification once. To avoid this, I set the count
parameter to 1
. After that, it will only issue notification of Day 1. Is there any way to issue a daily notification?