基于Apache科尔多瓦更改默认的WebKit - 机器人 [英] Change default webkit on Apache Cordova - Android

查看:119
本文介绍了基于Apache科尔多瓦更改默认的WebKit - 机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的球队,我们正在开发它是怎么回事平板电脑播放的应用程序,该项目已基本开发和谷歌浏览器测试。

In my team we are developing an application which is going to be played on tablets, the project has been largely developed and tested on Google Chrome.

在这个时候,我们要插入这个Web应用程序在Apache科尔多瓦,以显示它在Android本机应用程序(以及后来的iOS),但应用程序没有表现不错的平板电脑,这是因为WebKit的版本,而变化的每个Android版本,并在浏览器不能正常工作。

At this time we are inserting this webapp on Apache Cordova in order to display it as a native application on Android (and later on iOS), but the app doesn't displays well on the tablet, this because of the WebKit version, which varies on every Android version and does not work as in Chrome.

现在的问题是...有什么办法来改变其运作与Apache科尔多瓦WebKit的版本? (或任何其它网络渲染引擎)

The question is... There is any way to change the webkit version which operates with Apache Cordova? (or any other web rendering engine)

推荐答案

有没有办法在这个当前时间用来改变的Apache科尔多瓦WebKit的版本 - 这是因为科尔多瓦采用了原生Android的WebView组件,它是基于旧的Webkit版本。原生的Andr​​oid的WebView正在迅速成为移动世界的IE 6,如果没有的话。

There is no way at this current time to change the Webkit version used by Apache Cordova - this is because Cordova uses the native Android WebView component, which is based on an old Webkit version. The native Android WebView is quickly becoming the IE 6 of the mobile world, if it isn't already.

修改的whooo! Android 4.4系统的发布,默认的WebView现在将建立在铬之上!这意味着,科尔多瓦的应用程序在Android 4.4上运行应该运行得更快(新的JS引擎),并支持更多的功能(HTML5的东西。)还有很多混乱围绕这一新的WebView这意味着什么。最好的文章中,我已经阅读到目前为止是在这里:<一href="http://www.mobilexweb.com/blog/android-4-4-kitkat-browser-chrome-webview">http://www.mobilexweb.com/blog/android-4-4-kitkat-browser-chrome-webview

EDIT WHOOO! Android 4.4 announced that the default WebView will now be built on top of Chromium! This means that Cordova apps running on Android 4.4 should run much faster (new JS engine) and support more features (HTML5 things.) There is still a lot of confusion around this new WebView and what it means. The best article I have read so far is here: http://www.mobilexweb.com/blog/android-4-4-kitkat-browser-chrome-webview

很多人已经意识到,这正成为一个大问题,科尔多瓦的应用程序。已经有一些试点工作,建立使用铬源版本的WebView的(?因而Webkit内核的更新版本(闪烁)),你可以在这里查看code:的https://github.com/pwnall/chromeview 检查出问题选项卡,并按照它;我一直在每周收到几封电子邮件从人提交的问题。我觉得有些叉都是别人的前面,希望他们越来越接近。 (据科尔多瓦邮件列表,歌剧能够得到这个工作在2.2,但我无法找到任何code或任何超过路过的参考。)

A lot of people have realized that this is becoming a big problem with Cordova apps. There has been some experimental work to build a version of WebView that uses the Chromium source (and thus an updated version of Webkit (Blink?)), you can view the code here: https://github.com/pwnall/chromeview Check out the "issues" tab and follow it; I've been getting a few emails every week from people filing issues. I think some forks are ahead of others and hopefully they are getting close. (According to Cordova mailing list archives, Opera was able to get this working on 2.2 but I can't find any code or anything more than a passing reference.)

如果你能得到的WebView建有铬,它不应该是很难其中的WebView类科尔多瓦使用转出;我是pretty的肯定这种能力已经加入到科尔多瓦与此类似承诺:<一href="https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=f6049881">https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=f6049881

If you are able to get WebView built with Chromium, it shouldn't be that difficult to switch out which WebView class Cordova uses; I'm pretty sure this ability was already added to Cordova with this and similar commits: https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=commit;h=f6049881

我想很多人都屏住呼吸的安卓5.0将最终拥有一个使用铬源,并与铬同步更新......如果是这样,那将是真棒更新的WebView,但它仍然叶我们4.0及以下,似乎并没有在所有的工作。

I think a lot of people are holding their breath that Android 5.0 will finally have an updated WebView that uses Chromium source and will be updated in sync with Chromium... if so, that'll be awesome, but it still leaves us with 4.0 and below that doesn't seem to work at all.

这篇关于基于Apache科尔多瓦更改默认的WebKit - 机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆