← Back to team overview

ubuntu-phone team mailing list archive

accessing native APIs from HTML5 app?

 

Hi,

what would be the preferred way for an HTML5 app that needs access to
some native APIs like raw TCP sockets?

I had a quick look at Cordova, but the plugin API seems to be a
complete pain (for anything non-trivial).

So far I am leaning towards implementing and native WebSockets server
to proxy the TCP connection as a wrapper around webapp-container. Is
there any way to pass any information (like a local port number and
maybe an authentication token) to the HTML5 app on startup?

Any other options? If possible I want to avoid writing too much Ubuntu
Touch specific code.


Christof

-- 

http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org