I use sendSynchronousRequest to receive data from the server. I know that synchronous will wait for the data received for this request.
But the problem arises when the user mistakenly enters some non-existent url and tries to get an answer. In this case, if the user goes to the background and comes to the fore, he only shows a black screen. It shows only the status bar. Also, no background application is displayed. I have to click the Home button to exit my application.
In the simulator. After 1 minute, he shows me a message that “Request time” (No crash).
On the device, the application crashes for 1 minute.
Any suggestion. Any help. This is a really serious problem in my application.
Thanks.
source share