Stavros
Posts: 0
Joined: Wed Nov 14, 2012 1:34 pm

How to check for db connection

I have an app that connects with tiggzi db (that's fine so far thanks to the great
dev tool called TIGGZI !)

But what is the script that fisrt checks for db connection or even wifi connection ? before the user starts updating the db (or at least he thinks he does ...while there is no connection...)

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

How to check for db connection

PhoneGap has API to check for connection status: http://docs.phonegap.com/en/2.2.0/cor...

Stavros
Posts: 0
Joined: Wed Nov 14, 2012 1:34 pm

How to check for db connection

Thank you Max!

...a little more help.. how to write the JS in an event...

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

How to check for db connection

There are code examples in the link I provided: http://docs.phonegap.com/en/2.2.0/cor...

Return to “Issues”