Ripple Emulator doesn't fire events -
i have newest ripple emulator installed (newest available in chrome store) , works fine, except events. none of them fires (not deviceready
in other question, none).
neither manually (using events
pane) nor automatically (deviceready
) fired.
when use manual method, ripple writes line console, firing event, nothing happens. application not react @ all. have backbutton
event bind , not working in ripple. , application stopped working @ all, when moved init part deviceready
event, not being fired. of course, on target device fine, code should correct.
what can causing such behavior , there workaround it?
edit: have ripple emulator (beta) 0.9.15
installed chrome extension on windows 7. fine on destination device, js code (events handlers) should fine.
after deeper investigation i've managed solve problem (at least partially -- events fired not). in case missing .js
(phonegap source) file problem.
the key success to:
actually have phonegap / cordova js file placed in app content , have correctly referenced (valid path , file name) in source files.
have source file in correct version (2.0.0) of writing this.
first can confusing phonegap build users, instructed remove source file. reference in source file (<script type="text/javascript" src="cordova.js"></script>
) should untouched, file, references, should not exits. phonegap build inject file (in proper version) during compile / build process.
this fine phonegap, completely wrong ripple. if want ripple functional , able fire events (at least certain), should leave file in place. found out, not interfere phonegap @ all. apps builded without problems, , without file in place.
second important. found out, current version of ripple build basing on phonegap api 2.0.0, very, old against available phonegap api 3.0.0. so, have ripple working without glitches, have [browse phonegap repository(http://phonegap.com/install/) , grab phonegap 2.0.0 sources, released 20 jul 2012 , extract cordova.js
files out of it. place in source folder of webapp, add correct reference , try ripple then.
at least events should fired (some, deviceready
) may still fail.
also, keep in mind, everything, including event handlers, must defined in deviceready
event listener code, or whole thing fail.
ripple's jira issues, might related:
- support last version of phonegap,
- ripple emulator under windows doesn't fire events,
- ripple should check, if
phonegap.js
/cordova.js
files exists.
btw: if open browser's console , manually fire event you'll see proper notice written console ripple. means, ripple thinks, if fires on emulated webapp, doesn't fire it.
Comments
Post a Comment