-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Scheduled Local Notifications are delayed/ don't show on Android 8.1 #160
Comments
What happens if you clone the repository and run the sample app on Android 8.1.0 (you can make adjustments to the date and time to see as part of testing)? |
I have the same issue too. |
@hdvsyu I understand you have the same issue but sorry I'm having trouble with understanding the rest of what you wrote |
@MaikuB Sorry, my English is very poor...What I want to say is: |
Got it. Yes I believe both of your issues related to what I've documented in the README
|
Hi @MaikuB , Does recurring refer to repeating notifications or even scheduled notifications? Thanks |
Apologies you're right that was just for recurring notifications but did you get to check the sample app on the same device to see how it works? |
Forgot to also ask, what device(s) are you seeing this happen on and does it also occur in an emulator? |
Hi, I am also experiencing the same issue with the plugin. I am trying to schedule multiple notifications and they are coming late on android 8.0 or higher. I tested my app on an emulator.
For this example, some were on time, some were late. The ones that were late came all at once along with one that was on time. For example the ones that were scheduled to appear at 14:00 and 14:05 came at the same time with the one at 14:10. Thank you |
Was re-reading again on the Alarm Manager API and yes actually the inexact delivery will affect one-off scheduled notifications as well and not really specific to Android 8. I've made some changes that I believe will fix the issue. If you could test it out by referencing the dev branch via git package notation and let me know if that solves the issue then that would be great |
Hi, I tested with the dev branch you gave and all is good now. The notifications are showing on time with no delay at all. Thank you very much! |
Thanks for the feedback. I'll get that merged in and released soon |
This should be in the new release now so will close this issue |
@MaikuB facing this issue on Android 9. Working fine when showing notification with show() but not receiving notification when scheduling them. Scheduled notifications code is working fine on iOS. |
Please provide a sample that reproduces the problem. If it's to do with notifications been delayed, then there's a note about this in the readme. If you're only scheduling individual notifications as opposed to recurring ones, an option had been added in the more recent versions of the plugin that you'll need to toggle on. See https://pub.dev/documentation/flutter_local_notifications/latest/flutter_local_notifications/FlutterLocalNotificationsPlugin/schedule.html |
Notifications are not delayed, they are simply not showing up. They are of based random date and time so i can't use recurring option. This is the setup and scheduling code:
} |
Make sure to have configured your AndroidManifest.xml file as covered in the readme. This has been the common thing I've seen missed when issues have been raised that they don't work on Android |
Also note that when I mentioned a sample app to reproduce the problem, I was referring to a complete app (this could be a link to a repo on GitHub) |
There's also a bug in your code in how use the millisecond component as the id |
I was missing Android manifest configuration. Thank you very much for your quick response. |
Hello, I'm facing the same issue on Android 9.0, phone OnePlus5T. UPDATE It starts working for me in terminated app also only if I turn on 4g traffic. Apparently it looks like adaptive battery was causing the issues. After switching it off and on notifications do arrive event if app is terminated. So basically the issue is resolved. Will leave my comment here though, mb would help someone. Best regards, Borys |
I'm having the same issue now, |
Hi,
I have installed the local notifications plugin and set it up according to the instructions and they work as they should on lower android versions as it should.
However, on Android 8.1.0, the notifications are either delayed really badly or they don't show up at all.
I have registered the BroadcastReceiver class in AndroidManifest.xml, but still there is this problem.
I am scheduling multiple notifications and they are all having different ID's as I saw in a different issue that this is a problem.
Please advise.
Thank you
The text was updated successfully, but these errors were encountered: