Connection detection

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MrWizard.
Posts: 32
Joined: Tue Apr 17, 2012 3:31 am

Connection detection

Post by MrWizard. » Sun Mar 16, 2014 8:35 am

Hello

Is there a way to detect the connection type from a lc iPhone app?

I want to be cost conscious and have my app do light weight transfer when cellular connected deferring heavy transfers to wifi connected sessions.

It would be great to have a function to query the current connection type. Even better to have a trigger event to fire as the connection moves into and outof wifi connectivity

Thoughts?

E

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Connection detection

Post by Jellicle » Sun Mar 16, 2014 11:09 am

Yes, you can. Read the LiveCode iOS release notes and look for "Network reachability". If you have any questions after checking there feel free to ask here :)

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Re: Connection detection

Post by ctflatt » Wed May 25, 2016 9:53 pm

Where would this information be found today? In the download release notes for LC8?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Connection detection

Post by Simon » Wed May 25, 2016 11:12 pm

Hi ctflatt,
Look in the dictionary for "reachabilityChanged"

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Location: Fredericktown, MO
Contact:

Re: Connection detection

Post by ctflatt » Thu May 26, 2016 1:07 am

Simon,

Thank you for the reference.

Is this an iOS only feature, or is there an Android equivalent?

Many thanks.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Connection detection

Post by Simon » Thu May 26, 2016 1:53 am

I don't have the dictionary in front of me right now but I believe it's ios only.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “iOS Deployment”