Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-02-2010, 02:38 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 12
Default How often should I check for internet connection?

I have an application that I am finishing up that uses a UIWebView... How often should I check for the internet connection? Should that be done at time intervals or should that be done before any new page is requested? What if you check for the connection and it says yes, but a split second later you don't have it but you already sent the URL request? How have you guys handled this such issue?

Thanks in advance!
Matt
mschwade is offline   Reply With Quote
Old 02-02-2010, 07:42 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 12
Default

Quote:
Originally Posted by mschwade View Post
I have an application that I am finishing up that uses a UIWebView... How often should I check for the internet connection? Should that be done at time intervals or should that be done before any new page is requested? What if you check for the connection and it says yes, but a split second later you don't have it but you already sent the URL request? How have you guys handled this such issue?

Thanks in advance!
Matt
Does anyone have suggestions, input?
mschwade is offline   Reply With Quote
Old 02-02-2010, 10:49 PM   #3 (permalink)
Registered Member
 
msencenb's Avatar
 
Join Date: May 2009
Location: Stanford, CA
Posts: 289
Default

Generally I would check for an internet connection just at the beginning.... Then when trying to load a url perhaps you could set a timeout value. So if it goes for a set amount of time without loading it alerts the user that perhaps their internet connection isn't good enough or is gone.
__________________
I'm starting a new blog dedicated to iOS development. Check it out at:

http://www.iosdevscreencasts.com
msencenb is offline   Reply With Quote
Reply

Bookmarks

Tags
connection, internet, reachability, uiwebview, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 271
20 members and 251 guests
ADY, AragornSG, Bertrand21, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, iDifferent, JasonR, macquitzon216, mer10, prchn4christ, Rudy, sacha1996, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0