-
Notifications
You must be signed in to change notification settings - Fork 72
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
does not work when app killed by the user #13
Comments
I am facing the same issue when I switch off location permission from settings while the foreground service is still running stacktrace-
|
I have a similar issue. For me, my OS is stopping the main app after a few hours and then the callback isn't called anymore. From what I understand, the method channel gets destroyed in the process (and flutter gets detached from engine). I am not sure though since this is all pretty hard to debug for me. Any ideas how to solve this so far? I was thinking of re-starting the activity via intent maybe. I want to avoid moving all the stuff into an own plugin (which should also keep running then just like the foreground service) since I want to keep it in Dart |
For me the same. If the app has been closed by the user, the foreground service is detached. App is killed and no more notifications. Is there any fixes? How to prevent the app being killed or how the delete the ongoing push notificaition too? Thanks, |
did anyone find a solution for this? |
Any idea?? still not working when app is closed, this means that the plugins is useless... |
Is it working?if not how to resolve this? |
I'm not sure if its the intended behavior or not but the callback does not fire if the user kills the app, the notification is always showing but it does nothing.
i tried with two tasks :
and in both cases, the plugin does not work when the app is killed (even if the foreground notification is still showing in the tray)
"extra: my use case is to run a callback periodically that check if the GPS is enabled, if yes update a document in firebase if not notify the user (this should work even if the user killed the app accidentally)"
The text was updated successfully, but these errors were encountered: