Claudio
Posts: 0
Joined: Thu May 31, 2012 9:29 pm

Trap the "data connection lost" event

Hi,
how can I trap the "data connection lost" (3G or WiFi does not matter) event?
I saw your documentation and seem to me that I can use the "offline" event, but it does not seem to work.

Thanks for answering

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Trap the "data connection lost" event

The 'offline' event is PhoneGap event: http://docs.phonegap.com/en/1.8.1/cor...

You could check what error is returned by the service (if any) in case there is no connection and handle it.

Claudio
Posts: 0
Joined: Thu May 31, 2012 9:29 pm

Trap the "data connection lost" event

mmm... I would like to disable buttons at all if there isn't connection.
Is this possible?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Trap the "data connection lost" event

Of course it's possible, you just need to write the logic to implement that.

Return to “Issues”