Install the pluginstall script:
npm install -g pluginstall
Check if it was correctly installed:
npm ls -g | grep pluginstall
Get all Cordova plugins:
git clone git://github.com/alunny/phonegap-plugins.git
Go to the folder just created by git:
cd phonegap-plugins
Go to crossplatform:
git checkout crossplatform
Go to ChildBrowser plugin path:
cd CrossPlatform/ChildBrowser/
Go to your ios app folder and then execute:
pluginstall ios . ~/screencast/phonegap-plugins/CrossPlatform/ChildBrowser/
Add js file to your index.html file:
<script src="childbrowser.js" type="text/javascript" charset="utf-8"></script>
pluginstall ios . ~/screencast/phonegap-plugins/CrossPlatform/ChildBrowser/
This part fails if there isn’t a plugins.xml located in the folder.
fs.js:240
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory ‘/Users/bruce/Documents/testing/plugin.xml’
at Object. (fs.js:240:18)