Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Connection detection
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
givp  
View profile  
 More options Feb 24 2009, 3:02 pm
From: givp <autum...@gmail.com>
Date: Tue, 24 Feb 2009 12:02:18 -0800 (PST)
Local: Tues, Feb 24 2009 3:02 pm
Subject: Connection detection
I'm really sorry to be posting this again since I can see it has been
discussed a few times here. Except I haven't been able to find an
answer.

My app was rejected from the App store because it does not alert the
user if they have no internet connection.

I'm guessing the best place is on the first view and if you have no
connection, it throws an alert saying so.

But how? Any advice would be awesome.

Thank you,
g


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan  
View profile  
 More options Feb 24 2009, 3:04 pm
From: Jonathan <jonathan.mulc...@gmail.com>
Date: Tue, 24 Feb 2009 12:04:54 -0800 (PST)
Local: Tues, Feb 24 2009 3:04 pm
Subject: Re: Connection detection
How old is your version of phonegap that you downloaded? I think in
mid jan or early feb they added code to do this. I'll see if I can
look in my project to see what you need.

On Feb 24, 3:02 pm, givp <autum...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Goddard  
View profile  
 More options Feb 24 2009, 3:14 pm
From: Adrian Goddard <ade.godd...@gmail.com>
Date: Tue, 24 Feb 2009 20:14:01 +0000
Local: Tues, Feb 24 2009 3:14 pm
Subject: Re: [PhoneGap] Connection detection
Hi

As Jonathan states, i'm pretty sure newer builds cater for this but  
not 100%

Way back when.. I think what i did a bit of a hack, that basically  
made a request for an image off a server, set a timer and if it didn't  
get the image down in x amount of time then i deemed a lack of  
connection:) Hacky I know and cant find my project now but it got me  
accepted at the time:)

Also navigator.onLine is supported on the later releases of safari on  
the iphone, 2.1 onwards if memory serves. Not going to work for  
everyone but more robust than the hack:)

ade

On 24 Feb 2009, at 20:02, givp wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
givp  
View profile  
 More options Feb 24 2009, 4:16 pm
From: givp <autum...@gmail.com>
Date: Tue, 24 Feb 2009 13:16:55 -0800 (PST)
Local: Tues, Feb 24 2009 4:16 pm
Subject: Re: Connection detection
I downloaded the latest build last week.

g

On 24 Feb, 20:04, Jonathan <jonathan.mulc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
reverend  
View profile  
 More options Feb 25 2009, 10:41 am
From: reverend <rever...@ntw.net>
Date: Wed, 25 Feb 2009 07:41:46 -0800 (PST)
Local: Wed, Feb 25 2009 10:41 am
Subject: Re: Connection detection
Heh, that's exactly what my Blok-Buster app does, Adrian.   I agree
it's a bit of a hack, but Apple accepted it.    I'd love to see what
code was added recently that gives you a better solution...

On Feb 24, 1:14 pm, Adrian Goddard <ade.godd...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alshie  
View profile  
 More options Mar 27 2009, 9:08 am
From: Alshie <joey.must...@gmail.com>
Date: Fri, 27 Mar 2009 06:08:07 -0700 (PDT)
Local: Fri, Mar 27 2009 9:08 am
Subject: Re: Connection detection
I'm using the navigator.onLine method as mentioned by Adrian:

function checkNetwork(){
        if(navigator.onLine == false){
                alert("Error: No internet Connection");
        }

}

$(document).ready(function() {
        checkNetwork();

});

On Feb 25, 3:41 pm, reverend <rever...@ntw.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »