I am making a water reminder and need a notification to be sent at 8 am, 12 pm, 4 pm and 8 pm.
Here is my code, when I single click the notification button, it works fine, my only issue is to get to repeat, i have no clue how do go about what i want to do even after doing research.
await AwesomeNotifications().createNotification(
content: NotificationContent(
id: id,
channelKey: 'high_importance_channel',
title: title,
body: body,
actionType: actionType,
notificationLayout: notificationLayout,
summary: summary,
category: category,
payload: payload,
bigPicture: bigPicture,
),
actionButtons: actionButtons,
schedule: scheduled ? NotificationInterval(
interval: interval,
timeZone: await AwesomeNotifications().getLocalTimeZoneIdentifier(),
preciseAlarm: true,
)
: null,
);
I found a solution to this problem i encountered by making different notification methods each calling at the desired times
and used onChange function to call each method.