Hi ion-people!
I can’t configure the schedule at a certain time every day.
Using at works but I can’t find documentation on using on, count, repeat and every.
How are they used?
So this works (After 3 seconds)
const notifications = [
{
title: 'Title',
body: 'Message',
smallIcon: 'res://calendar',
id: index,
schedule: { at: new Date(new Date().getTime() + 3000) },
actionTypeId: 'ActionId',
}
]
const notifs = await LocalNotifications.schedule({notifications});
But nothing to do for this (every day at 4.30pm), with or without count & repeat
const notifications = [
{
title: 'Title',
body: 'Message',
smallIcon: 'res://calendar',
id: index,
schedule: { every: 'day', on: {hour: 16, minute: 30}, repeats: true, count: 10 },
actionTypeId: 'ActionId',
}
]
const notifs = await LocalNotifications.schedule({notifications});
I tried {every: ‘minute’ | ‘second’ | ‘hour’} but it schedule randoms notifications!
Should be a trivial alarm function!
Any tips?
Please Help!!