cordova - _gwt$exception : Cannot read property 'uuid' of undefined -
i working on mgwt-phonegap application.
i using code:
final phonegap phonegap = gwt.create(phonegap.class); phonegap.addhandler(new phonegapavailablehandler() { @override public void onphonegapavailable(phonegapavailableevent event) { //start app - phonegap ready window.alert("phonegap ready"); }}); phonegap.addhandler(new phonegaptimeouthandler() { @override public void onphonegaptimeout(phonegaptimeoutevent event) { //can not start phonegap - setup window.alert("can not start phonegap"); }}); phonegap.initializephonegap();
when using compiled code target folder, phonegap i.e assets/www folder , running phonegap application. giving me error:
_gwt$exception : cannot read property 'uuid' of undefined
this script using on index.html page:
<script type="text/javascript" language="javascript" src="cordova.js"></script> <script type="text/javascript" language="javascript" src="myapplication/myapplication.nocache.js"> </script> <script type="text/javascript"> document.addeventlistener("deviceready", (function() { cordova.available = true; }), false);
this particular code catching exception:
gwt.setuncaughtexceptionhandler(new uncaughtexceptionhandler() { @override public void onuncaughtexception(throwable e) { // todo put in own meaninful handler window.alert("uncaught: " + e.getmessage()); e.printstacktrace(); } });
just elaborate more:
add device plugin mentioned below. http://docs.phonegap.com/en/3.3.0/cordova_device_device.md.html
regards, sandip
Comments
Post a Comment