I asked a question: Disable service restart on button click about service. The answer I recieved is I should try to use WorkManager. I did, but I noticed when the app is kil