Android Question service does not work

Discussion in 'Android Questions' started by Jhohann Fabian Salazar L, Jun 11, 2019.

  1. Jhohann Fabian Salazar L

    Jhohann Fabian Salazar L Member Licensed User

    good morning co-workers, I have a service that every 10 seconds queries for http, happens that in a lapse of time, the service stops working, and if I open the app it comes back and it works, how do I make the service run forever? ?, like a whatsapp. Thank you
     
  2. AnandGupta

    AnandGupta Active Member Licensed User

  3. Erel

    Erel Administrator Staff Member Licensed User

    Whatsapp doesn't run in the background. It uses push notifications. You can do it as well.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice