Skip to content

Conversation

@jamesxabregas
Copy link

This pull request adds logic to enable addNotificationRequest() to have repeating logic simmilar to that provided by scheduleLocalNotification() which is deprecated. addNotificationRequest() now supports a repeatInterval parameter with values minute, hour, day, week, month, year.
This pull request also fixes a bug with addNotificationRequest() that meant that the notification request didn't repeat daily as documented even if the repeats parameter was set to true (it was configured in a way that meant it would only fire once).

…ar) parameter for addNotificationRequest(). Also fixes bug with current implementation where notification would not repeat daily with repeats= true as per the documentation.
…ure function of all use cases. Supports repeating by year, month, week, day, hour, minute, non-repeating, and immediate delivery.

The "repeats" parameter in addNotificationRequest() is effectively redundant and replaced by "repeatInterval" however the documented behaviour of "repeats" has been retained to ensure backwards compatibility, even though it didn't previously work.
@mklb
Copy link
Contributor

mklb commented Aug 16, 2021

+1 🎉 I would love to see this merged. This would be very helpful!

@Naturalclar
Copy link
Collaborator

@jamesxabregas thank you so much for the suggestion! along with review for #268
I've added your suggestions you made in #268 and published in v1.10.0 🎉
Closing this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants