Confusing recirects in the documentation on docs.phonegap.com

18 views
Skip to first unread message

Nikel Weis

unread,
Feb 25, 2014, 4:54:18 AM2/25/14
to phon...@googlegroups.com
Hi there,

I'm new to phonegap so I'm fighting through the documentation and I'*ve noticed really strange redirects. I don't know if this is the right place to mention that but please check out the following:

Visit: http://docs.phonegap.com - Your selected documentation version will be 3.3.0 (so the CLI states that you should use the "cordova" command instead of phonegap)

Click on the version combobox in the right corner - 3.4.0 does not appear.

Click on "edge". -> redirected to edge -> check out the combobox again 3.4.0 appears.

I've bookmarked docs.phonegap.com and was quite confused why I should use the cordova command instead of phonegap. Maybe someone could fix that.

So here is my question:
I've used the cordova command - is there a way to change my project to the phonegap command to use the remote build functions? By the way what is the difference between those two?

Kind regards
Nikel

WebSteve

unread,
Feb 26, 2014, 1:18:19 PM2/26/14
to phon...@googlegroups.com
If you installed Cordova, then you'll always use the cordova command. When you do this in the terminal ...

cordova plugin add org.apache.cordova.geolocation

... it looks for a hidden folder called "cordova," so if you typed "phonegap" or something other than "cordova," then the command won't work. So if a project calls for you to type "adb" as the first word, it is assuming you've already changed the directory to the folder that has the "adb" folder in it.

The second word is giving the command to execute that's inside the cordova folder. The following words seem to be the arguments so the command knows exactly how to carry out the order.

I hope this mini-tutorial on terminal commands helps you understand how to differentiate between cordova and phonegap usage.

You'll download and use "phonegap" if you want to use the PhoneGap Build service. If not, download and use "cordova." If you want to use phonegap, then just open a new folder separate from the cordova project and download phonegap into that, then copy the files over, installing all the plugins again. (I'm pretty sure this is how it's done.)
Reply all
Reply to author
Forward
0 new messages