feat(local-notifications): add start date to cron like scheduler#2562
Open
F0079 wants to merge 1 commit into
Open
feat(local-notifications): add start date to cron like scheduler#2562F0079 wants to merge 1 commit into
F0079 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This feature provides the possibility to add a start date to a cron job like scheduler. To make use of a start date, the
atproperty has to be defined in addition to theonproperty of theScheduleentity. If both are present, then the cron like scheduler is postponed to the given start date.Current
Scheduledefinition: https://capacitorjs.com/docs/apis/local-notifications#schedule-1Change Type
Rationale / Problems Fixed
This feature supports the use case "Schedule a notification starting next week on a daily base."
This kind of functionality is already described by issue #131. Instead of using the
everyproperty, this feature request makes use of the cron like scheduler configuration because it is more powerful.Tests or Reproductions
A test case "Schedule every minute, starting in 5 minutes" will be added to the test app by pull request #787 in the
capacitor-testapprepository.Platforms Affected
Notes / Comments
Associated Pull Requests
capacitor-testapp: feat(local-notifications): add test case for recurrent notifications with a start date capacitor-testapp#787capacitor-docs: feat(local-notifications): add documentation about cron like schedule with start date capacitor-docs#561