-
Notifications
You must be signed in to change notification settings - Fork 189
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
Is there a way to know if app is closed or not? #473
Comments
You can implement the WidgetsBindingObserver interface to check if the app is in the resumed state or in the foreground before executing each task. |
i tryed this, but it does not work when the app isn't resumed and you close the app from the recent apps. |
But i already solved it creating a plugin to listen for app lifecycle using native code.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to run two tasks in the background, one needs to run even if the app is closed and the other cannot run if the app is closed. Is there a way to do this?
The text was updated successfully, but these errors were encountered: