I have the following code to send a birthday reminder:
await Notifications.scheduleNotificationAsync({
content: {
title: "Its NAME's birthday today!",
body: "Don't forget to wish a happy birthday",
sound: true,
vibrate: [0, 500], // This also doesn't vibrate. If you have a solution to this too please let me know.
color: "#eeeeee",
priority: "MAX",
subtitle: "Birthday Reminder",
},
trigger: {
seconds: SECONDS_TO_THE_BIRTHDATE,
channelId: "BirthdayReminder",
},
});
Say the birthdate is in march 1st then I would want to send a notification on the upcomming march 1st and then every year on march 1st at a specific time say 6am. How do I do it?
repeats:true
setting repeats to true repeated the notification but at "SECONDS_TO_THE_BIRTHDATE" interval, I want it to repeat at a interval of 1 year starting form that "SECONDS_TO_THE_BIRTHDATE".
I did find "YearlyTriggerInput" on the documentation but I have no idea how to use it.