Cordova 3 + Ripple
The ripple emulator has been broken for a long time, since cordova version 2.7 to version 3.1 (more or less: cordova version is not tied to ripple version). You can find it here: http://ripple.incubator.apache.org/
These articles are excellent to get you up to speed with the latest version of ripple:
- http://www.raymondcamden.com/index.cfm/2013/11/5/Ripple-is-Reborn
- http://www.raymondcamden.com/index.cfm/2013/11/7/Using-Grunt-to-automatically-build-your-PhoneGapCordova-projects
- http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/
Hope this helps.
Found the answer!You just need to remove the Ripple Extension from your Google Chrome.
But after that I had another problem: For Cordova 3.3.0, you might face this weird error while emulating the camera or the photo/media library:
Uncaught TypeError: Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only 1 present. -- ripple.js:49275
/incubator-ripple-master_new/pkg/hosted/ripple.js - line 49279
change this:
capture.setAttribute("controls");
to this:
capture.setAttribute("controls", true);
and then you can restart Ripple. BTW, for version 0.9.20, you don't need to provide the path to 'platforms/android/assets/www' anymore, just provide the root path and it will identify your project:
./ripple emulate --port 1234 --path ~/tech/phonegap/myPhonegapApp/
Ripple project was given to Apache. You can find here.
There, we can find the GitHub repository that we can build newests versions.