zo0r / react-native-push-notification

React Native Local and Remote Notifications
MIT License
6.76k stars 2.05k forks source link

Repeat Notification only firing Day Of Notification but not Day 2 #2068

Closed twalkerjr22 closed 3 years ago

twalkerjr22 commented 3 years ago

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

Dallas62 commented 3 years ago

Hi, Please read pinned issues. Regards

twalkerjr22 commented 3 years ago

@Dallas62 Which pinned issue? I didn't see any of the three pinned issues related to my issue

Dallas62 commented 3 years ago

1574

Read it completely