how to check internet connection
Hi
How to check internet connection using appery.io
Thanks,
Ram
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi
How to check internet connection using appery.io
Thanks,
Ram
Hi Ram,
There are "online" and "offline" events in Phonegap/Cordova:
http://docs.phonegap.com/en/1.0.0/pho...
Does something exist to tell whether the "online" connection is WIFI or not?
Hi John,
Modern mobile OS do not consider connection type to be important. Android 4 has a permission to check Wi-Fi connection (ACCESSS_WIFI_STATE in Appery.io)
Screens in Appery.io builder have Online and Offline Cordova events.
You can write code that saves flag in local storage if there is an Internet connection available.
Hi Katya,
The OS might not care, but unfortunately, the accounts departments do
Looking at the link it appears iOS only returms "Connection.CELL_2G" for all cellular data, wifi or not where as Andriod 4 I can confirm its wifi.
Thanks
John.
Its fine I've tested the code on iOS and I can get status of 2g or WIFI. That's good enough for me
Sorry for hijacking your thread Ram.
Glad it helped
Hi
As stated above "Screens in Appery.io builder have Online and Offline Cordova events" which works fine upon switching Internet on/off. But how can I know if the Internet connection is available when the user opens the app for the first time (and Internet is already either on or off)? Is there any way to read it?
Michal
Hello!
Please take a look here http://cordova.apache.org/docs/en/3.3...