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
Custom intervals for periodicallyShow #92
Comments
Have been thinking about it. The reason why it's not there was that there are devs that are also targeting iOS 8 and 9 and custom intervals like that aren't supported. However, the fraction of devices on those versions are very small so that's why I'm considering this ATM. This will mean it will be a function (possibly an overload) that only works for Android and iOS 10+ so will need to be clearly documented |
+1 ...I would need this as well! Hoping to set intervals in terms of every week, every other week, every three weeks, every four weeks... |
I have seen your fork and I'm always open to look at a PR :) |
I did, I just tried changing the static values for minute, hour, week, etc but I am not quite sure if this will work or repeat properly until testing, but iOS notifications seem to work. Also having trouble with android getting notifications to show reliably atm...currently a work in progress |
Is it possible to combine every other week with specific weekday (e.g.: Monday and Friday)? |
Any updates? |
@cesarureno I'm actually looking to close this now as no one has looked into contributing a PR despite how long this issue has been around. I would say if you're after this feature that you look into implementing yourself and submit a PR if possible |
Oh, I see @MaikuB I will start to try make some awesome, thanks for your time and your package |
Maybe you can do this by combining this package with flutter_background_fetch.
Unfortunately the interval has to be > 15min and checking every 15 min will cost some battery. |
I want to be able to schedule a notification for e.g. each 3rd Thursday 18:00 - this is currently not possible. |
I'm also looking into 15-30 mins notification interval! I hope this change gets in |
@MaikuB It's been over 2 years and IOS 8/9 are less relevant. Maybe this should be reconsidered? |
@britannio if you had followed the discussions above then you should see that I said for others to submit a PR for this. Sounds like you need this perhaps you could look into doing so |
Hey! Or maybe it is possible to use a notificationShownCallback to schedule the next one. |
I have read that this should be taken over by the community, but I still have a suggestion,
|
I'm also interested in custom scheduled intervals, so that I have one unique ID for one notification and it is pushed e.g. every 3 hours. Specifying a start and end time would also be cool, so that you can program medication reminder apps, for example. I'm still pretty new to Flutter and don't know every source of information. If there are other ways to do this, I would appreciate any tips. |
Hello @MaikuB . Please how does one make the task check if the notification has been sent |
Hi, I also wanted to show a notification on a specific date every year but currently I don't think it is possible. Is there any workaround for such situations ? Or even we could reschedule the notification once the notification is received but there is no callback for this event |
Is it possible to schedule a repeatable daily or weekly notification which will start running at a specific date and time. I was not able to implement it after a lot hours of trying out. If I schedule it to execute on every Monday starting from a specific date and time, then the scheduled date is ignored and next time a notification will appears is the next Monday. Any ideas or suggestions are welcome. |
Se #1118 |
Is something like |
@mvolpato I don't want to schedule the notification weekly. I am creating a birthday reminder app so, I want to schedule the notification at a particular date and time every year. |
I see. That is because |
@mvolpato because of that very reason i also mentioned 2 other solutions and asked that if they would somehow work |
Line 333 in b7fa709
We can allow users to pass calledAt so that notification can be scheduled later with repeat. With this, we can achieve custom time for peridicallyShow What do you think? This can save a lot of time doing background fetch and other logic to schedule |
Can this give notification at a particular date every year @manojeeva ? |
This will help https://www.youtube.com/watch?v=aQTvI8L-mZs |
Hello,apart from custom intervals is there some way to change the body everytime the periodicallyshow displays the notification every hour/minute/day. Like I am making a quote generator app which sends notifications every hour with a different quote, I have a function which return random quotes on callback, but for if I use periodically Display it just simple shows the first fetched quote from the callback function. Any way to do this? |
Any updates? |
+1 |
I had the same problem so have forked the repo and created a solution where you can send in repeatStartTime (which is an int representing timeSinceEpoch) into the periodicallyShow 😄 You can find it here: https://github.com/henriklagergren/flutter_local_notifications Import it like this in your pubspec.yaml file:
|
@henriklagergren time since, which one, milliseconds since approach? |
Note there is a PR at #2197. I've requested some changes but they're minor. If the community can help test out and confirm that it's all good then if the PR author doesn't get around to it then I could try to clean up the PR myself when I can |
I tried using this fork, and it worked fine on Android only. On iOS, it seems to be ignoring the repeatStartTime or the calledAt. Also, I can't see any specific native implementation on the iOS side that is checking for calledAt or repeatStartTime in the periodicallyShow function. I am new to the native iOS development, so I cannot exactly say what the issue is. |
Are there any thoughts on adding custom intervals for showing repeating notifications?
Currently it supports the repeat intervals (EveryMinute, Hourly, Daily, Weekly).
But for my case I would be interested in having the users select the interval themselves.
Without going to much into the businesslogic.
Basically the user sets a reminder and chooses a time interval e.g. every 5min, 20min, 1.5hours, etc.
It would most likely always be in the range of 5min - 4hours.
The text was updated successfully, but these errors were encountered: