[aerogear-dev] gwtcon

Erik Jan de Wit edewit at redhat.com
Thu Nov 27 02:59:10 EST 2014


On 26 Nov,2014, at 11:49 , Matthias Wessendorf <matzew at apache.org> wrote:

> so, you are proposing having a layer that basically wires a native GUI element to a JavaScript function?

Yes

> 
> I thought that Cordova would already allow you, building native UI _and_ invoking JS functions, but looks 'pure' like Cordova apps are just WebView? So, for adding native buttons, I'd have to take the project to the next stage (e.g. open in Xcode and do some ObjC/Swift foo), where I than need to manage the JS invocation (I assume that I am able to leverage Cordova for the call from native to js, since that's what the plugins do - but _not_ explicitly wired to a native 'button;)?

No cordova does not have this functionality, so my suggestion is to make a library to make that effort easy. Initially base this on cordova and the way cordova makes calls to and from native code, because then you could still use the plugins as well. Another possibility could be to build something on top of iOS 7 JavaScriptCore and v8 on Android, because we don’t use the web view anymore and only need a Javascript execution environment, but for first version using web view to execute the Javascript would be good enough.

Cheers,
	Erik Jan


More information about the aerogear-dev mailing list