dileepbapat / gwt-phonegap

Automatically exported from code.google.com/p/gwt-phonegap
0 stars 0 forks source link

gwt-phonegap to detect missing plugins and handle error nicely #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build and execute app with references to phonegap plugins
2. remove plugin ala cordova plugin rm org.apache.cordova....
3. build and execute app

What is the expected output? What do you see instead?

I expect to see an exception with a description of the missing plugin.
Instead I get this cryptic exception
_gwt$exception : Cannot read property 'type' of undefined

What version of the product are you using? On what operating system?

mgwt 2.0.0 rc2
gwtphonegap 3.5.0
cordova 3.5.1
android

Please provide any additional information below.

This is documented by another dev at
http://stackoverflow.com/questions/23217117/gwtexception-cannot-read-property-uu
id-of-undefined

Original issue reported on code.google.com by andy.stevko on 11 Sep 2014 at 9:58

GoogleCodeExporter commented 9 years ago
P.S. The gwtphonegap api documentation does not identify the plugins necessary 
for the methods to work.

Original comment by andy.stevko on 11 Sep 2014 at 10:00

GoogleCodeExporter commented 9 years ago
Actually Phonegap itself doesn't have the capability to detect the missing 
plugins and handle them necessary. So I don't think that makes the top of the 
list in gwt phonegap. But I do agree that the GWT API documentation needs to 
clearly indicate the necessary plugins, now more with separate plugins required 
for each API.

Original comment by svkirans@gmail.com on 15 Nov 2014 at 5:14