Cordova 1.6 Plugin 'NetworkStatus' not found

799 views
Skip to first unread message

Chris Brody

unread,
Apr 12, 2012, 5:33:10 PM4/12/12
to phon...@googlegroups.com
I just removed Cordova 1.5 and installed Cordova 1.6. I tried to run a
project and I get the following message on the console:

2012-04-12 23:30:24.908 CD6Test[24795:13403] ERROR: Plugin
'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin
mapping in Cordova.plist.

I tried commenting out the code exec(successCallback, errorCallback,
"NetworkStatus", "getConnectionInfo", []); and get another plugin not
found error.

I found a related mail at:
http://mail-archives.apache.org/mod_mbox/incubator-callback-dev/201204.mbox/%3CCAK-b5ZxBdp=rpUXfKGvGBAG56RVhGT...@mail.gmail.com%3E

What should I do and do other people see the same problem?

Chris

Shazron

unread,
Apr 12, 2012, 5:39:46 PM4/12/12
to phon...@googlegroups.com
There is a new Cordova.plist because of the unified JS changes. Check
out the "Cordova Upgrade Guide" in your .dmg (Guides subfolder), or:
"Upgrading Cordova 1.5.0 projects to 1.6.0" step 8 of
https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Upgrade%20Guide.md

> --
> 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

Chris Brody

unread,
Apr 12, 2012, 5:46:36 PM4/12/12
to phon...@googlegroups.com
This happened when I generated a brand new project.

On Thursday, April 12, 2012 11:39:46 PM UTC+2, Shazron Abdullah wrote:
There is a new Cordova.plist because of the unified JS changes. Check
out the "Cordova Upgrade Guide" in your .dmg (Guides subfolder), or:
"Upgrading Cordova 1.5.0 projects to 1.6.0" step 8 of
https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Upgrade%20Guide.md

On Thu, Apr 12, 2012 at 2:33 PM, Chris Brody <chris...@gmail.com> wrote:
> I just removed Cordova 1.5 and installed Cordova 1.6. I tried to run a
> project and I get the following message on the console:
>
> 2012-04-12 23:30:24.908 CD6Test[24795:13403] ERROR: Plugin
> 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin
> mapping in Cordova.plist.
>
> I tried commenting out the code exec(successCallback, errorCallback,
> "NetworkStatus", "getConnectionInfo", []); and get another plugin not
> found error.
>
> I found a related mail at:

> http://mail-archives.apache.org/mod_mbox/incubator-callback-dev/201204.mbox/%3CCAK-b5ZxBdp=rpUXfKGvGBAG56RVhGTqWmUc6WBS19qN0e...@mail.gmail.com%3E


>
> What should I do and do other people see the same problem?
>
> Chris
>
> --
> 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

Chris Brody

unread,
Apr 12, 2012, 5:53:11 PM4/12/12
to phon...@googlegroups.com
Sorry: for some reason my XCode 4.3.2 is generating based on the old template. I tried uninstalling the old Cordova 1.5 and installing Cordova 1.6 but it seems to still use the old template. I will try using the command line to generate the project instead.


On Thursday, April 12, 2012 11:39:46 PM UTC+2, Shazron Abdullah wrote:
There is a new Cordova.plist because of the unified JS changes. Check
out the "Cordova Upgrade Guide" in your .dmg (Guides subfolder), or:
"Upgrading Cordova 1.5.0 projects to 1.6.0" step 8 of
https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Upgrade%20Guide.md

On Thu, Apr 12, 2012 at 2:33 PM, Chris Brody <chris...@gmail.com> wrote:
> I just removed Cordova 1.5 and installed Cordova 1.6. I tried to run a
> project and I get the following message on the console:
>
> 2012-04-12 23:30:24.908 CD6Test[24795:13403] ERROR: Plugin
> 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin
> mapping in Cordova.plist.
>
> I tried commenting out the code exec(successCallback, errorCallback,
> "NetworkStatus", "getConnectionInfo", []); and get another plugin not
> found error.
>
> I found a related mail at:

> http://mail-archives.apache.org/mod_mbox/incubator-callback-dev/201204.mbox/%3CCAK-b5ZxBdp=rpUXfKGvGBAG56RVhGTqWmUc6WBS19qN0e...@mail.gmail.com%3E


>
> What should I do and do other people see the same problem?
>
> Chris
>
> --
> 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

Shazron

unread,
Apr 12, 2012, 6:11:08 PM4/12/12
to phon...@googlegroups.com
There is an edge case where sometimes it might install in /Library
instead of ~/Library. - thus overriding any home folder templates.
Take a look there in the normal template locations. I honestly don't
know how this happens since the installer specifically only installs
in your Home folder locations.

On Thu, Apr 12, 2012 at 2:53 PM, Chris Brody <chris...@gmail.com> wrote:
> Sorry: for some reason my XCode 4.3.2 is generating based on the old
> template. I tried uninstalling the old Cordova 1.5 and installing Cordova
> 1.6 but it seems to still use the old template. I will try using the command
> line to generate the project instead.
>
>
> On Thursday, April 12, 2012 11:39:46 PM UTC+2, Shazron Abdullah wrote:
>>
>> There is a new Cordova.plist because of the unified JS changes. Check
>> out the "Cordova Upgrade Guide" in your .dmg (Guides subfolder), or:
>> "Upgrading Cordova 1.5.0 projects to 1.6.0" step 8 of
>>
>> https://github.com/apache/incubator-cordova-ios/blob/master/guides/Cordova%20Upgrade%20Guide.md
>>
>> On Thu, Apr 12, 2012 at 2:33 PM, Chris Brody <chris...@gmail.com>
>> wrote:
>> > I just removed Cordova 1.5 and installed Cordova 1.6. I tried to run a
>> > project and I get the following message on the console:
>> >
>> > 2012-04-12 23:30:24.908 CD6Test[24795:13403] ERROR: Plugin
>> > 'NetworkStatus' not found, or is not a CDVPlugin. Check your plugin
>> > mapping in Cordova.plist.
>> >
>> > I tried commenting out the code exec(successCallback, errorCallback,
>> > "NetworkStatus", "getConnectionInfo", []); and get another plugin not
>> > found error.
>> >
>> > I found a related mail at:
>> >

>> > http://mail-archives.apache.org/mod_mbox/incubator-callback-dev/201204.mbox/%3CCAK-b5ZxBdp=rpUXfKGvGBAG56RVhGT...@mail.gmail.com%3E


>> >
>> > What should I do and do other people see the same problem?
>> >
>> > Chris
>> >
>> > --
>> > 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
>

> --
> 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

Chris Brody

unread,
Apr 12, 2012, 6:19:42 PM4/12/12
to phon...@googlegroups.com
I think it is some kind of XCode @#$%. I looked through the template locations and they seemed OK. But I am using your create_project.sh and it actually works great since I don't have to drag-and-drop the link to the www directory.

My next idea is to make a project with multiple targets: difference in development version and integration test. Or even better to generate a project with iOS, Android and maybe some others together.

Chris


>> >
>> > What should I do and do other people see the same problem?
>> >
>> > Chris
>> >
>> > --
>> > 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


>> > 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
>
> --
> 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

scwh

unread,
Apr 28, 2012, 4:08:44 AM4/28/12
to phon...@googlegroups.com
what is the specific key+string pair to add to make this work? there's no NetworkStatus key in a new Cordova 1.6.1 new project plist

scwh

unread,
Apr 28, 2012, 1:03:53 PM4/28/12
to phon...@googlegroups.com
sorry it was late and i missed that its in there as CDVConnection

my issue was related to this.. using jquery for the deviceready event handler

Reply all
Reply to author
Forward
0 new messages