naengi New Member Jul 1, 2023 #1 Hello friends In my app, I have a service that runs in the background and sends a text every 5 seconds to the server And if I delete the app from the background of the phone, it runs again So far there is no problem But when I add a webview to the activity and load a URL, all services are closed after closing the app And it won't run in the background anymore Is there a reason?
Hello friends In my app, I have a service that runs in the background and sends a text every 5 seconds to the server And if I delete the app from the background of the phone, it runs again So far there is no problem But when I add a webview to the activity and load a URL, all services are closed after closing the app And it won't run in the background anymore Is there a reason?
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2023 #2 1. Bad title. 2. The only way to keep a service running is with a foreground service. Check this example: Background location tracking Upvote 0
1. Bad title. 2. The only way to keep a service running is with a foreground service. Check this example: Background location tracking