what if some one adds a schedule notification for 31 january and adds repeat as month when will the next notification be shown ?
Question
what will be happening if someone adds a local notification schedule for 31st January and adds repeat as every month. as February is having only 28 days that is 31st February does not exist. when will be the next notification be shown 30 days after 31st January that is on 3rd March, or it will skip the February notification and show a notification directly on 31st march?
Hi @ufran8291 You can find the Android Logic there: https://github.com/zo0r/react-native-push-notification/blob/master/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java#L635
It's going to trigger on 31th january then 28th february and fallback to 28th march, ...
Regards,
Hi @Dallas62 ,
So you mean the fallback is last date of previous month? Not the last date of every month?
@shivnath17 After reading the code what I understood is:
- The date you give while scheduling notification is called fireDate.
- fireDate gets updated to 28 Feb, so the date you gave which is 31, becomes 28, now 28 will continue forever.