Export to GitHub

gwt-phonegap - issue #5

test network on iPhone crashes app with phonegap 0.9.4


Posted on Mar 3, 2011 by Swift Panda

showcase test network crashes app on simulator with phonegap 0.9.4

Comment #1

Posted on Mar 14, 2011 by Swift Panda

problem seems to be with phonegap 0.9.4 in Network.m

changing the code like suggested here solves the problem: http://groups.google.com/group/phonegap/browse_thread/thread/76b05e001a15b932/15e2ff1b0e96c617?pli=1

Comment #2

Posted on Jul 13, 2011 by Swift Panda

(No comment was entered for this change.)

Comment #3

Posted on Jul 13, 2011 by Swift Panda

(No comment was entered for this change.)

Comment #4

Posted on Sep 6, 2011 by Happy Hippo

I'm using phone gap 1.0 and the problem still persists when using it as below:

NetworkReachableOptions o = new NetworkReachableOptions(); o.setIpAddress(false);
o.setHostname("cnn.com"); NetworkReachableCallback c = new NetworkReachableCallback() {

                public void onSuccess(int networkReachable) {
                    Window.alert("r:"+networkReachable);
                }
            };

            phoneGap.getNetwork().isNetWorkReachable(o, c);

Comment #5

Posted on Sep 6, 2011 by Swift Panda

Did you try the suggested workaround mentioned here: http://groups.google.com/group/phonegap/browse_thread/thread/76b05e001a15b932/15e2ff1b0e96c617?pli=1

Does it work for then?

If so we should file a bug report with the phonegap project. I assumed that this has already ben done.

Comment #6

Posted on Sep 14, 2011 by Swift Panda

Network API was removed from phonegap 1.0.

New Connection API is implemented in trunk and will be part of gwt-phonegap 1.0

Status: WontFix

Labels:
Type-Defect Priority-Medium Milestone-Release1.0