-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancements - Interval Trigger with start date and time. #887
Comments
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
Is there any change to have this implementation ? There is a way to specify the start date and time for the interval triggers ? |
i have same case here |
I also have same case. Is there any progress in that? |
@ashishmangukiya @Alexzenderus @brunul |
Interval Trigger
The IntervalTrigger allows you to create a trigger that repeats at a specific interval. The trigger accepts two properties, an interval and an optional timeUnit.
This trigger can be used to implement timers.
For example, to set a trigger to repeat every 30 minutes from now:
import notifee, { IntervalTrigger, TriggerType, TimeUnit } from '@notifee/react-native';
const trigger: IntervalTrigger = {
type: TriggerType.INTERVAL,
interval: 30,
timeUnit: TimeUnit.MINUTES
};
ABOVE FEATURE ALREADY EXIST IN THE LIBRARY
but what I want is to start interval after specific date and time.
for example. I want to start drinking water every 1 hour from tomorrow 10:AM onwards
So I should receive notifications from tomorrow by 10:00 AM, 11:00AM, 12:00PM, 1:00PM ....
This is the only implementation I want from the library.
Let me know if it is possible or not.
The text was updated successfully, but these errors were encountered: