phonegap 1.6 connection.type is always undefined on android

446 views
Skip to first unread message

Wes Williams

unread,
Apr 13, 2012, 3:40:33 PM4/13/12
to phon...@googlegroups.com
I started upgrading my application from phonegap 1.5 to 1.6 and everything works well on iOS but on android the 

navigator.network.connection.type is always undefined. Maybe I missed something in the upgrade for the adroid project? I use a command line project and do not use eclispe for android.

any advice?


thanks,

wes

Simon MacDonald

unread,
Apr 13, 2012, 3:43:34 PM4/13/12
to phon...@googlegroups.com
The updated plugins.xml did not get packaged with 1.6.0.

Anyway to fix you need to change:

<plugin name="Network Status" value="org.apache.cordova.NetworkManager"/>

to be:

<plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>

Simon Mac Donald
http://hi.im/simonmacdonald

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Wes Williams

unread,
Apr 13, 2012, 5:21:45 PM4/13/12
to phon...@googlegroups.com
super, this fixed my issue, Thanks!!!


On Friday, April 13, 2012 12:43:34 PM UTC-7, Simon wrote:
The updated plugins.xml did not get packaged with 1.6.0.

Anyway to fix you need to change:

    <plugin name="Network Status" value="org.apache.cordova.NetworkManager"/>

to be:

   <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>

Simon Mac Donald
http://hi.im/simonmacdonald

On Fri, Apr 13, 2012 at 3:40 PM, Wes Williams <wes.wi...@gmail.com> wrote:
> I started upgrading my application from phonegap 1.5 to 1.6 and everything
> works well on iOS but on android the
>
> navigator.network.connection.type is always undefined. Maybe I missed
> something in the upgrade for the adroid project? I use a command line
> project and do not use eclispe for android.
>
> any advice?
>
>
> thanks,
>
> wes
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to

> phonegap+unsubscribe@googlegroups.com

Reply all
Reply to author
Forward
0 new messages