-
Notifications
You must be signed in to change notification settings - Fork 114
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
Service could not gracefully restart #223
Comments
Hello, any update on this? |
… forcibly terminated the service #223
Please update to the latest version and check. |
I will do, thank, really appreciate! |
I noticed that Foreground Service shut down after a day or so of stable operation. |
I discovered that this library has already implemented the use of Alarm Manager to restart the service: |
Hello, good day.
We use flutter foreground service, to calculate user steps in the background and display them in a sticky notification.
The problem we are trying to tackle now is app stops working in the background after some time but retains the sticky foreground notification, hanging at "x" last counted steps before the stop. We have gotten these reports from quite a number of our users. After several debugs, we think this happens when the operating system tries to free resources by restarting the foreground service.
Do you have any advice on how to make flutter foreground service restart gracefully whenever the Operating System forces it to do so and continue whatever activity from where it stopped without any seizure?
The text was updated successfully, but these errors were encountered: