Important: Please read the Qt Code of Conduct -

Android: Run background service with suspended app

  • 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:

    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?

Log in to reply