Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova 3 + Ripple

Someone knows if Ripple works with latest cordova version? Cause I'm trying and I can't even start control panel. And when I try without it, pops some "alerts":

gap:["PluginManager","startup","PluginManager590841628"]

gap:["App","show","App590841629"]

Versions: Cordova 3 Ripple 0.9.16 Chrome 28.0.1500.95 m

like image 848
Poliane Brito Avatar asked Aug 12 '13 00:08

Poliane Brito


2 Answers

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.

like image 69
Sergio Morstabilini Avatar answered Oct 07 '22 02:10

Sergio Morstabilini


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/
like image 38
the_marcelo_r Avatar answered Oct 07 '22 03:10

the_marcelo_r