No description or website provided.
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.




  • Added audio/video section using my cordova-mediaPlayer-core files as a submodule.
  • Note: I've deleted my old Cordova-MediaPlayer repo. This will be the only project where my cordova-mediaPlayer-core files are integrated/demonstrated from now on.
  • Added orange GIT links for each plugin/section


Here's my humble stab at setting up and maintaining a bare bones PhoneGap 3.x project structure with the plugins* I normally use (*official plugins and others I've modified myself).

This will likely be a WIP for a while - but the main thing in the initial version I wanted to get finished/released asap was getting the main plugins I normally use working with CDV 3.0 and in a 'ready-to-use' form. At the time I'm writing this up some of the plugins used are indeed CDV 3.0 compatible - but others are not (including important ones like how I need to view URLs and PDFs). Long story short is that this project contains a bare bones CDV 3.0 app project root folder structure that includes the following plugins and some test methods (js/tests.js):



Official Plugins

Note: All plugins are now submodules that point to their original (current) repositories.

Plugins I didn't have to alter myself - all came directly from latest git repos maintained by the Cordova team)
Plugins I've Modified

(The original authors of these may/may not update these eventually - but my copies are working in CDV 3.0 today)

All the plugins listed above work as normal so nothing really to explain outside the usage shown in the js/tests.js file. Adding/removing the latest version of each plugin requires using the Cordova CLI. The only thing that is worth mentioning here is a few things around the InAppBrowser plugin being used.

InAppBrowser is an official Cordova-maintained plugin and is currently CDV 3.0 compatible However it currently doesn't allow "windowed" mode as my previous versions of ChildBrowser did so I've taken the latest version and modified it to take some additional parameters to allow the specification of width, height, xpos and ypos. Example usage/etc can be seen in the js/tests.js or at the git page ( I also threw in the ability to provide a button background color as a parameter if the default blue doesn't match the app's skin - syntax also shown on the git page.


Please Note that setting up a new PhoneGap 3 Boilerplate folder per the below Terminal commands will nuke any files you have there already - so it's best to start with a new directory and move any existing files you need in after setting everything up.

Make sure cordova 3 is installed first (instructions here).

To grab a copy of the PhoneGap 3 Boilerplate (on OSX) jump to Terminal and change to whatever directory you want to place your project and type the following ("MyFolder" being what the local destination folder should be named):

cordova create PG3BP
cd PG3BP
git clone --recursive tmp && mv tmp/.git . && rm -rf tmp && git reset --hard

To take a look at things now you can type the following to confirm the PhoneGap 3 Boilerplate plugins are indeed there and that no platforms are setup yet for the project:

cordova plugins ls
cordova platforms ls

Next step to add an iOS project type the following:

cordova platform add ios

At this point a Xcode project has been setup so you can test/build that when ready. From this point on, modify and test the files in the PG3BP/www folder and when you want to refresh the iOS build return to the Terminal (in "PG3BP" folder) and type:

cordova build

This will push your PG3BP/www changes down to the iOS build and actually test the Xcode build via command line.

When you want to do fresh pull of main repo

git pull origin master

Submodule Stuff

Warning: Playing with submodule stuff assumes you are crazy as me and/or a super elite git user

I am no pro at git submodules - but I do find them useful/necessary for avoiding version control insanity and a general means of keeping things packaged neatly. For that reason I've made all plugins in this project submodules that can be updated if/when the developer wants to do so.

To update all submodules from their source run these commands from the parent folder at any time:

git submodule update --init
git submodule foreach git pull origin master

If anyone has trouble w/the plugins - here's a (partial) list of plugin submodule commands I've run. If a plugin namespace or path changes, this list of commands might come in helpful. For example the Cordova team removed the word ".core" from the namespace of a handful of their plugins recently - so I had to use these commands to re-add these submodules to this project (fun!.. not).

git submodule add plugins/org.apache.cordova.device
git submodule add plugins/
git submodule add plugins/org.apache.cordova.battery-status
git submodule add plugins/
git submodule add plugins/org.apache.cordova.dialogs
git submodule add plugins/org.apache.cordova.splashscreen
git submodule add plugins/org.apache.cordova.console


To be updated...