Page 1 of 1

What mobile network is available and/or active?

Posted: Wed Apr 13, 2016 2:03 pm
by tonymac
Running an LC 8 app on an android/iPhone phone. Need to detect if WIFI is either on or off. I know I could try to download a file from a server but that would not tell me if it was over wireless or 3G/4G. Anybody know of a way to do this? Would be nice to be able to tell if wireless is not on, which network is on... 3G? 4G?

Thanks.

Re: What mobile network is available and/or active?

Posted: Tue Apr 26, 2016 3:39 pm
by lilRalph
G'Day Tonymac,

Not anything i have attempted yet but I probably would begin looking to access the Android API.
Maybe this will help
https://developer.android.com/training/ ... y/nsd.html

I'll be interested in the results.

Re: What mobile network is available and/or active?

Posted: Tue May 03, 2016 10:15 am
by rblackmore245
Only way I was able to do it was via this method.

http://forums.livecode.com/viewtopic.ph ... 45#p127253

If tells me if the user if connected via a 3G connection if not then they are on a active WIFI connection.

Has proved useful and reliable for a few projects.