cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Mocny <mmo...@chromium.org>
Subject Re: PhoneGap interface on Android vs. addJavaScriptInterface
Date Fri, 26 Oct 2012 17:17:03 GMT
To be clear, that means version 2.2 will have the changes.  2.2 is
already approaching its second release candidate so you could expect
it out in some short number of weeks.

On Fri, Oct 26, 2012 at 1:12 PM, Andrew Grieve <agrieve@chromium.org> wrote:
> Hey Laszlo,
>
> You'll be happy to know that with our next release, we've implemented a new
> Android bridge, which is even faster than using loadUrl! If you're
> interested in the details, have a look at this bug:
>
> https://issues.apache.org/jira/browse/CB-638
>
> Andrew
>
>
> On Fri, Oct 26, 2012 at 1:00 PM, Fazekas László <fazekas@group4mind.hu>wrote:
>
>> Hi!
>>
>> About 1 month ago, I've developed a PhoneGap application to one of my
>> clients. He dropped it back to me, because the UI was slow and laggy on
>> a Vodafone SmartTab. After some debug, I've realized, the problem is the
>> speed of the PhoneGap interface, and the XHR poll mechanism (I've found
>> some info about it here:
>> http://nullisnotanobject.com/phonegap-native-bridge). The final solution
>> was creation of a new PhoneGap like interface through
>> addJavascriptInterface and loadUrl. This new interface is working like a
>> charm without lag. I think, the perfect solution would be an optional
>> support of addJavascriptInterface/loadUrl way. If it is working on the
>> device without bugs, PhoneGap could use this faster way automatically
>> instead of the present solution, or developers could enable it
>> optionally. For example, in my case, the application will be used only
>> on Vodafone SmartTabs, where the standard addJavascriptInterface/loadUrl
>> solution working fine and fast, so in this case I could enable it.
>>
>> Kind regards,
>>   Laszlo
>>

Mime
View raw message