Schedule wifi on when the screen is off
Posted: 20 Nov 2013 03:10
I've a flow which will schedule to switch on the wifi periodically and download some files during the screen is off.
1. Time tigger the flow
2. Switch Wifi State to On
3. Sleep 1m (allow sleep)
4. Check if Wifi connected to any SSID
5. Download files if connected
However, the condition that checking ssid always return false and therefore it won't run the 5th step.
If I screen on and execute the flow manually, it doesn't have any problems and it can connect to the wifi and run to the end of the flow.
Is it impossible to switch on the wifi and connect to any ssid when the mobile is sleeping or screen off?
1. Time tigger the flow
2. Switch Wifi State to On
3. Sleep 1m (allow sleep)
4. Check if Wifi connected to any SSID
5. Download files if connected
However, the condition that checking ssid always return false and therefore it won't run the 5th step.
If I screen on and execute the flow manually, it doesn't have any problems and it can connect to the wifi and run to the end of the flow.
Is it impossible to switch on the wifi and connect to any ssid when the mobile is sleeping or screen off?