rohitsax / gwt-phonegap

Automatically exported from code.google.com/p/gwt-phonegap
0 stars 0 forks source link

ConnectionMobileImpl deprecated method call navigator.network.connection #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using gwt-PhoneGap 2.4 with phonegap 2.7.0 on android 4.1.1

this sample code failed :  
PhoneGap phonegap = GWT.create(PhoneGap.class);
Connection connection = phonegap.getConnection();
if (Connection.NONE.equals(connection.getType()) || 
Connection.UNKNOWN.equals(connection.getType()))
            connectionState = false;
        else
            connectionState = true;

because connection.getType() throw an exception : 
"Access made to deprecated symbol : navigator.network.connection"

need to update javascript code

Original issue reported on code.google.com by pniot...@gmail.com on 9 Aug 2013 at 10:30

GoogleCodeExporter commented 9 years ago
I made a mistake. This is not an exception, this is just a warning.

Original comment by pniot...@gmail.com on 12 Aug 2013 at 1:15

GoogleCodeExporter commented 9 years ago
Hi Daniel,

I sent a pull request to fix this issue.

Original comment by svkirans@gmail.com on 2 Sep 2013 at 1:57

GoogleCodeExporter commented 9 years ago
Fixed in gwtphonegap 3.5

Original comment by svkirans@gmail.com on 14 Jun 2014 at 7:10