Android: Run background service with suspended app
Unsolved
Mobile and Embedded
-
Hi everyone. I have a simple android that reads from the phone GPS and sends the coordinates to my server. I use the approach recommended by Qt Android docs. You can view the implementation here:
https://github.com/oria66/test-qml-android-service
Everything works perfectly and suddenly the app stops sending data when any of these situations happen:
- The user decides to touch the home button and go out.
- The system screen goes to black.
I want that the apps keep sending data unless the user closes the service or the app, or shut down the phone.
What's your recommendation?
-
did you find a solution?