Currently having an issue where the notification is firing day 1 but not firing on day 2. Here is my current code below:
const getCorrectDate = () => {
const date = new Date();
date.setDate(date.getDate());
date.setHours(21);
date.setMinutes(30);
return date;
};
PushNotification.localNotificationSchedule({
//... You can use all the options from localNotifications
channelId: "wakeup",
message: "Your evening routine is ready.", // (required)
date: getCorrectDate(), // in 60 secs
allowWhileIdle: true, // (optional) set notification to work while on doze, default: false
repeatType:"day",
})
Am I doing something wrong? I am testing on Android
Currently having an issue where the notification is firing day 1 but not firing on day 2. Here is my current code below:
Am I doing something wrong? I am testing on Android