I think there is definitively an interest for having one code base (Java/JavaScript:
choose your weapon) for multiple platform using native look and feel. At Devoxx I attended
2 sessions on the topic:
Here is an extract from my blog post devoxx summary [1]:
"Develop your mobile app once in your favourite language and deploy it on iOS and
Android. Still the Nirvana mantra for quick-win mobile development… If your language of
choice is Java, see “Real cross-platform Java on mobile devices” session and how to use
JavaFX to build your app on Android (LodgON) and iOS (RoboVM). UI is not yet native feel
but it’s in the pipe for future as well as using Java8. If you’re a JavaScript ninja, go
to “Use JavaScript to build Mobile Apps with Native UI” session to hear about Titanium.
You have to learn a titanium specific API to build all your app including UI. but, UI get
bridged into native widgets. As … stresses a lot no lowest common denominator, When you
need to go platform specific use a if/else :)) “
Worth investigating further...
++
Corinne
[1]
On 27 Nov 2014, at 08:59, Erik Jan de Wit <edewit(a)redhat.com>
wrote:
On 26 Nov,2014, at 11:49 , Matthias Wessendorf <matzew(a)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
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev