thank you very much for your answer.
im using phonegap.0.9.5.1.min.js
ive used this index.html:
http://nopaste.info/6d1ad6f239.html
my testing devices are:
android 2.3.3
ipod touch 2g (4.2.1)
ive tested it in both browsers as website and as native apps.
on the android device nothing happens, with both methods.
on ipod touch it works when im using the native app, but it always
just says: "unknown connection". doesnt matter if im using wlan, umts
or no internet connection.
On 29 Jun., 10:22, Shazron Abdullah <
shazron.abdul...@nitobi.com>
wrote:
> What version of PhoneGap?
> You'll have to wait for the deviceready event before using any PhoneGap functions, doesn't look like you are in your code.
>
>
http://docs.phonegap.com/phonegap_events_events.md.html#deviceready
>
> On 2011-06-29, at 12:59 AM, TK wrote:
>
>
>
>
>
>
>
> > hey guys
>
> > im still writing on my app for iphone 4.x and android 2.3.x and i got
> > new issues.
> > im trying to use the on-/offline-event of html5 for knowing when the
> > network connection is available.
>
> > im using this test, to see if its working on the devices:
> >
http://html5demos.com/offline-events
>
> > if im testing it directly in the browser windows it works on both
> > devices.
> > but at the moment im making native apps, nothing happens..
>
> > if you want to see the code im using, u can find it here:
> >
http://nopaste.info/1b815cd0ad.html
>
> > edit:
> > ive tested the phonegap method for that too, but with the native
> > iphone app, it isnt working:
> >
http://docs.phonegap.com/phonegap_connection_connection.md.html#conne...
>
> > thanks in advance..
> > regards
>
> > edit:
> > maybe somebody knows a solution for the orientationchange-issue with
> > native iphone apps?
> >
https://groups.google.com/group/phonegap/browse_thread/thread/6bad835...