Scheduled notification not fired when app is closed.
guman24 opened this issue · 8 comments
- what devices are you using?
- have you tried this using the example app too and able to reproduce the issue with it?
Hello @MaikuB ,
I have the same problem on iOS and Android. As an example application, I can show:
https://github.com/Enough-Software/enough_mail_app
Thanks in advance for your support.
@muhyal your problem isn't the same as @getrajan is referring to scheduling notifications. Your app doesn't schedule any notification and through this plugin, only scheduled notifications will appear even if the app is closed as the intention is to schedule a notification to appear in the future. From what I've seen, your app only calls the show()
method, which relies on the app to be running for it to work or it's called via a background isolate. You're going to need to look further if you had built your app properly to support your scenarios and this isn't guidance I have time to provide by doing a review of applications others are developing
@getrajan you've not answered the 2nd part of my question. You should run the example app on a stock Android device/emulator to see how this is meant to behave. Note there are no known issues with the plugin on this and there's mention in the readme that some Android devices behave differently because of the customisations the manufacturers have done to their take on Android. This is documented at https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications#scheduled-android-notifications. If you believe there is a bug then you'll need to provide a link to a repository hosting minimal app that can reproduce the issue
You can find a video of the example app running on my own phone (Pixel 6) at #1735 (comment). The notification appears as expected though it is disappearing after sometime as I was trying to demonstrate that timeoutAfter
works on my device
Closing due to lack of further response and have shown that it works. If you believe there's an issue then you can re-open it provided you can also give a link to a repository with code for a minimal app that can reproduce the issue
I have used an android Samsung m-62 and a simulator too. It's not getting notification when the App is terminated for both.
…
On Fri, 23 Sept 2022 at 09:24, Michael Bui @.> wrote: 1. what devices are you using? 2. have you tried this using the example app too and able to reproduce the issue with it? — Reply to this email directly, view it on GitHub <#1712 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3KT2DB7XC5KJHNFOVDVZ3V7UQ6NANCNFSM6AAAAAAQR6N4YI . You are receiving this because you authored the thread.Message ID: @.>
Have you found solution to this issue ?