Hello
I use HTTPJob in the receiver
There is no problem when the program is running and all requests are sent correctly
But
When I close the program, I get a timeout error or Unable to resolve host error ?
What is the problem?
And one more question, is it still possible to run a service in the background on Android 12 and above? Because by using the service, requests are sent without problems
This means that the device isn't connected to the internet.
If you are making the request immediately after the device wakes up then it is possible that it wasn't connected yet. You can try to add Sleep(2000) before making the request or make another attempt if it fails.
This means that the device isn't connected to the internet.
If you are making the request immediately after the device wakes up then it is possible that it wasn't connected yet. You can try to add Sleep(2000) before making the request or make another attempt if it fails.