Kivy service stops when app is closed
问题 I'm starting a service from my Kivy app: service = autoclass('net.saband.myapp.ServiceMyservice') mActivity = autoclass('org.kivy.android.PythonActivity').mActivity service.start(mActivity, '') It works. And if I close my app using the back button my service still works. But if I close my app by swiping it out from the recent apps list the service dies. I've found this issue and tried to use startForeground guided by this article. It works but the notification is not removable so this