IntentService is not called sometimes

I use IntentService to access various web service methods and update my ContentProvider . The problem that I see is that sometimes I send a new Intent to the IntentService, but onHandleIntent() IntentService not called. And after a while, playing with the application and clicking on things to start other intentions, the onHandleIntent() method is onHandleIntent() and all Intents queues are started.

Has anyone else encountered this problem? It seems that the IntentService stuck at some point. I know that it is asynchronous, but I still expect it to work in a timely manner. Any thoughts?

+1
source share
1 answer

The problem was that the HTTP request would take a lot of time, and therefore other HTTP requests would have to wait. IntentService uses only one thread at a time.

+2
source

Source: https://habr.com/ru/post/919774/


All Articles