Closed ghost closed 11 months ago
This is the expected behavior. For a persistent service use :foreground:sticky
https://github.com/Android-for-Python/Android-for-Python-Users#service-lifetime
@RobertFlatt thanks sir, please tell me Myservice:foreground:sticky
after doing this will the pyjnius background service auto restart after closing the kivy apk?
Read the previously linked documentation.
Closing: Working as designed
Versions
Description
The background service implemented in service.py runs successfully, but it stops running after closing the Kivy APK. The service does not restart automatically. Please help to solve this problem.
Code example
service.py:
main.py:
buildozer.spec
Command:
Spec file: