incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (JIRA)" <>
Subject [jira] [Commented] (CB-638) Slow native bridge (especially android)
Date Fri, 04 May 2012 15:12:47 GMT


Patrick Mueller commented on CB-638:

We probably should enable, *optionally*, and *not by default* being able to use the [WebView.addJavascriptInterface()|,
java.lang.String)] API, instead of the current bridge.

It seems quite possible that this enablement would entail making a decision at runtime which
bridge to use, since the {{addJavascriptInterface()}} bridge will cause a trap on some simulators,
but work on devices running the same major/minor version of Android.

Having said that, most of these bridges are potentially huge bottlenecks anyway, across many
platforms.  It might also be useful to think of some alternatives - like batching requests,
or something.  It would might also be useful to try to lobby the platform developers to give
us some alternatives, like a [{{postMessage()}}|]
type of interface.
> Slow native bridge (especially android)
> ---------------------------------------
>                 Key: CB-638
>                 URL:
>             Project: Apache Callback
>          Issue Type: Improvement
>            Reporter: Lee Crossley
> Doing many native callbacks (such as writing files) has a significant overhead.
>'s native bridge is more than 5 times faster than Cordova (on Android).
> I'd love to see similar performance stats in Cordova.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message