pui.onoffline
Posted: Wed Nov 26, 2014 5:40 pm
Hello,
I am developing some mobile applications that will have a offline mode, when a connection is not available. It works great when i toggle off the network, the unit switches to my new offline routine. However, when i test by dropping the connection, the unit acts as if it is loading. It does not swap directly to the offline mode.
My question is how does pui.onoffline work. Why would it get held up when simulating dropping from a network? Why does it work smoothly when going into the units settings and toggling network off?
Thanks.
I am developing some mobile applications that will have a offline mode, when a connection is not available. It works great when i toggle off the network, the unit switches to my new offline routine. However, when i test by dropping the connection, the unit acts as if it is loading. It does not swap directly to the offline mode.
My question is how does pui.onoffline work. Why would it get held up when simulating dropping from a network? Why does it work smoothly when going into the units settings and toggling network off?
Thanks.