-
Notifications
You must be signed in to change notification settings - Fork 21
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 get the service alive? #8
Comments
@mperezfra In on_resume(), I detect no response from the service, and restart it. Restart requires an elegant termination. I expect there are issues that I have not considered, but this appears to work on Windows and Android. Code fragments: main .py:
service.py :
The choice to restart the service on_resume() is totally arbitrary. One could perhaps have two services restarting each other...... The unanswered question is what causes Android to stop the service? ( other than because it can) More interesting how can one write a service that is unlikely to be stopped? |
When the phone goes to sleep or I change to other app for a while, Android kills the service. I get the following error
ActivityManager: Stopping service due to app idle u0a262 -1m55s386ms org.kivy.oscservice/.ServicePong
Is there a way to get the service alive in these situations?
The text was updated successfully, but these errors were encountered: