I need a suggestion on handling multiple Wi-Fi scenarios in my application.
Suppose my application is running and the device is idle for a while, and it goes into sleep mode. In standby mode, Wi-Fi is automatically turned off. Now, when the device returns from standby mode, it takes some time to turn on the Wifi state. Now, if during this time the background service application makes an HTTP request, how do we handle this script?
OR
Suppose that if Wifi is not available, the device tries to connect to GPRS / 3G, and if during this period, if the user / help desk makes an http request, how do we process it in code?
source share