做“Chrome应用移动”使用本机每个平台上的Web视图? [英] Do 'Chrome Apps for Mobile' use native web-view on each platform?

查看:221
本文介绍了做“Chrome应用移动”使用本机每个平台上的Web视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时的 Chrome应用对于移动只集合或它打算同时更换机Web视图与基于Chrome浏览器的Web视图?

Is Chrome Apps For Mobile only a collection of Apache Cordova plugins for each mobile platform or does it intend to also replace the native web-view with Chrome based web-view ?

这<一href="http://stackoverflow.com/questions/21684414/reasons-for-porting-a-cordova-app-to-a-mobile-chrome-app">question这<一href="https://docs.google.com/$p$psentation/d/1H8MPv-nB0NrsRiPl4LlPPeB3O3xQKyqlpBls2auYvN8/$p$psent#slide=id.gf3587ab8_0164"相对=nofollow>幻灯片上的谷歌文档似乎表明,它是插件只是一个集合。这问题说,iOS上它采用了原生的Web视图。

This question and this slide on Google Docs seem to indicate that it is only a collection of plugins. This question says that on iOS it uses the native web-view.

那么在Android和任何未来平台谷歌可能会支持?

What about on Android and any future platforms Google might support?

推荐答案

是的,目前所有的 Chrome应用使用 CCA 工具包,用于移动的是科尔多瓦为主,因此使用原生系统的WebView。

Yes, all current Chrome Apps for Mobile using the cca toolkit are cordova based and thus use the Native system WebView.

在iOS上来说,这似乎是不可能的,因为政策的限制来改变(但嘿,谁知道)。

On iOS, this currently seems unlikely to change because of policy restrictions (but hey, who knows).

在Android上,科尔多瓦贡献者想尝试配套使用的自定义Web渲染器实现。这是正在讨论一个可能的科尔多瓦-4.0 主要版本凹凸里程碑的功能,从而将针对2014年秋/冬这真的只是一个梦,在这一点上,但它肯定是一个特点,那就是在每个人的心中。

On Android, the cordova contributors would like to experiment with supporting the use of custom web renderer implementations. This is being discussed as a possible cordova-4.0 major version bump milestone feature, and would thus target fall/winter of 2014. This is really just a dream at this point, but its certainly a feature that is on everyones mind.

我要指出,有许多缺点这样做,它不是所有的肉汁。使用自定义的WebView意味着添加〜20meg应用程序下载的大小,并指在设备显著更多的内存/显存使用。另外,我们可以要求用户从商店下载一个单独的科尔多瓦 - 运行的应用程序(如Adobe AIR的Andr​​oid版,或像你必须下载一个Java运行桌面),但用户通常不喜欢这种体验。

I should note, there are a many downsides to doing this, its not all gravy. Using a custom WebView means adding ~20meg to application download size, and means significantly more memory/video memory usage on device. Alternatively, we could ask users to download a separate "cordova-runtime" app from the store (like Adobe Air for Android, or like you have to download a Java Runtime for desktop), but users usually dislike that experience.

此外,与Android 4.4奇巧,现在有一个铬基的WebView,这使远程调试并实现了许多现代化的网络功能,自定义的WebView的效用正在萎缩。

Also, with Android 4.4 KitKat now having a chrome-based WebView, which enabled remote debugging and implements many modern web capabilities, the usefulness of a custom WebView is shrinking.

最后,已经做了你问什么,但的不是的科尔多瓦为主,而且是已经是一个项目的不使用 CCA 工具:英特尔的人行横道项目。只要将它添加,以供参考。他们维基越过了很多权衡他们的做法的。

Finally, there is already a project that does what you ask, but isn't cordova based, and is not used by the cca tool: Intel's Crosswalk Project. Just adding it for reference. Their wiki goes over a lot of tradeoffs with their approach.

这篇关于做“Chrome应用移动”使用本机每个平台上的Web视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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