Detect Wifi vs 3g/4g Internet

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
kenroy.roach
Posts: 4
Joined: Fri Aug 19, 2016 5:35 pm

Detect Wifi vs 3g/4g Internet

Post by kenroy.roach » Fri Sep 23, 2016 8:16 pm

I am building an app that requires a sizable download after install. As such I would only want the user to perform this over wifi or at least give the user the option based on their settings. After searching all the forum topics I could there seems to be a way for ios but not android. This one workaround (http://forums.livecode.com/viewtopic.ph ... 45#p127253) will not work since it doesn't take into account VPN or the same provider supplying both wifi and 3g. Does anyone have a solution for this?

AxWald
Posts: 379
Joined: Thu Mar 06, 2014 2:57 pm

Re: Detect Wifi vs 3g/4g Internet

Post by AxWald » Mon Sep 26, 2016 12:36 pm

Hi.

Why not simply asking the user?
------------------------
Hi pal. I need to download half the internez for this app to be workink fully. Is it good time now?

Yep, go on! - Nope, we'll do later! - Huh?

------------------------
Have fun!
Livecode programming until the cat hits the fan ...

rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: Detect Wifi vs 3g/4g Internet

Post by rblackmore245 » Tue Sep 27, 2016 3:33 pm

Yes this is the problem I had when coding my App, in the end I had to perform the workaround solution I found and then ask the user and alert them that I would be downloading over a Gig of data.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7247
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Detect Wifi vs 3g/4g Internet

Post by FourthWorld » Tue Sep 27, 2016 3:40 pm

A gigabyte is a lot to ask of the user to dedicate to a single app. On many phones that would be 1/16th of the total storage space on the device, and more than 1/8th of available space.

Could any of that media be streamed?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: Detect Wifi vs 3g/4g Internet

Post by rblackmore245 » Mon Oct 17, 2016 9:07 am

Nope Unfortunately the app had to work totally offline, I had major issues with downloading this amount of data and some kind of memory leak, so in the end I had to split the files into 10 meg sections.

Post Reply

Return to “Android Deployment”