I have been dealing with an error, which I have attempt to shorten the posiblities. It only happens on Release. I have manage to simulate the situation.
The device, is connected through a mobile network and working fine. It does some requests every 30 seconds to a server in order to detect if there is connectivity. If I turn off mobile data, open the app, then it would respond with:
UnknownHostException: Unable to resolve host "api.llavemovil.com": No address associated with hostname, Response:
If I switch back the mobile data on the device, it still returns the same response (and for every other request, which involves other servers, diferent URI), also I´m sure that there is connectivity as I can open the servers URI in a browser, and everything else works fine.
If I restart the App it is ok. I think there is somewhere in OkHttp that hangs the whole thing, but I cannot figure out under which conditions. Has someone has this same issue?
The device, is connected through a mobile network and working fine. It does some requests every 30 seconds to a server in order to detect if there is connectivity. If I turn off mobile data, open the app, then it would respond with:
UnknownHostException: Unable to resolve host "api.llavemovil.com": No address associated with hostname, Response:
If I switch back the mobile data on the device, it still returns the same response (and for every other request, which involves other servers, diferent URI), also I´m sure that there is connectivity as I can open the servers URI in a browser, and everything else works fine.
If I restart the App it is ok. I think there is somewhere in OkHttp that hangs the whole thing, but I cannot figure out under which conditions. Has someone has this same issue?