The documentation for this V3 is extremely lacking.
Please can someone from the core team (or community) give an example of what the schedule
needs to be, so that it works for each of the following:
- Schedule a DAILY notification at a specific time, e.g. Every DAY at 15:00
- Schedule a WEEKLY notification at a specific time, e.g. Every WEEK at 15:00
- Schedule a SPECIFIC DAY OF THE WEEK notification at a specific time, e.g. Every WEDNESDAY at 15:00
Searched everywhere, tried lots of things and not getting anything reliable working.
At the moment if I do:
var d = new Date();
schedule = {
on: {
hour: d.getHours(),
minute: d.getMinutes()
},
allowWhileIdle: true
};
I can get a daily notification appearing, but it always says it’s late by 1d or 2d from whenever I’d first set it, not ‘Now’ or ‘Today’.
Thank you