cordova-plugin-local-notifications
cordova-plugin-local-notifications copied to clipboard
trigger match repeats
When I set a schedule on a specific time, for example { every: { hour: 10, minute: 30 } }, notifications pop every second until 10:31. I just want it to pop once, every day at 10:30. Thanks
Then write a specific piece of code to do it. I recall you have 64 triggers on IOS, if your user doesn't log on to your app in 64 days for you to refresh the code, then your use case is wrong.
What about add in the config
{ every: { hour: 10, minute: 30 }, count : 1 }
but I'm not sure if this will count the entire cycle of the notification or just in the minute that it matches...
"Count: 1" is ok for the repeating issue but then it doesn't show a notification the next time it's supoused to. I need a notification every day at the same time besides the user open or not the app.
Set "count" to some high number like 365. Then you will only get one notification per day for a year.
for me its not working as well, tried to set the count with a higher number, but no luck. the mobile phone keep vibrating when the time comes...
var _config = {
"title": "Medicine alert",
"text": "Medicine X",
"trigger": {
"every": {
"hour": 8,
"minute": 55
},
"count" : 365
}
}
trigger a lot of times without count, trigger few times with count, if count is 9999 the app crashes =(
Anyone solved this? I have exactly the same issue. Instead of firing once when hour and minute first match current time it fires continuously while they match.
Needs to repeat every day at the same time whether app has been opened or not and only fire once at that time.
Following up on this too, experiencing the same thing
Guys any updates on this issue? Are we able to resolve it somehow?
this works for me, thanks a lot! https://github.com/katzer/cordova-plugin-local-notifications/issues/1533#issuecomment-463625420