android - 将 Chrome 浏览器打包成 HTML5 Android 应用

标签 android html google-chrome cordova

我们正在开发几个基于 Sencha 框架的 HTML5 应用程序,并考虑将它们打包到带有 PhoneGap 的应用程序中。

但是,即使您将这些打包到应用程序中,我假设您仍然需要处理 Android fragment 化问题,因为各种制造商对浏览器进行了奇怪的修改。我们已经测试了很多制造商(尤其是来自中国的制造商),默认的 Android 浏览器被黑死了。

我们的应用程序在 Android 上的 Chrome 浏览器中运行完美,所以,问题是,是否可以将 Chrome 直接放入同一个包中并使用它?每个制造商都喜欢制作一些随机修改的浏览器,而不是。

抱歉,如果这是一个愚蠢的问题,这仍然是一个新问题。任何帮助/建议将不胜感激!!

最佳答案

我想指出人行横道:https://crosswalk-project.org/

它似乎提供了你所需要的。

What is Crosswalk for?

If you are a developer working with web technologies, Crosswalk enables you to deploy a web application with its own dedicated runtime (ed: modified Chromium). This means three things:

  • You can distribute your web application via app stores.
  • Your application won't break in whatever ancient webviews or browsers your audience is using, as you control the runtime and its upgrade cycle.
  • You can build applications without worrying so much about runtime differences and quirks: you only have one runtime to deal with.

关于android - 将 Chrome 浏览器打包成 HTML5 Android 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16409294/

相关文章:

html - 如何在页面上定位 CSS 元素?没有位置属性?

css - 切换溢出属性时,谷歌浏览器不会调整内容大小

javascript - React-router 在transitionTo 上意外重新加载(Chrome)

android - 设备错误 : WARNING: unexpected '-prop' value ('emu.uuid=520cf82a-fcb6-4b6a-b5c4-386e635c8ba6' ), 仅支持 'qemu.*' 属性

android - 将 doNotStrip packagingOptions 设置为特定的 buildType

android - Fragment getView() 总是为 FragmentStatePagerAdapter 创建的 Fragment 返回 null

css - 不调整 UL 和 DIV 容器的高度

javascript - 调整视频JS大小,容器调整大小,但实际视频仍然原始大小

Android Studio Gradle 同步失败 : Configuration with name 'default' not found

html - 仅当我在 Chrome 中选择检查元素时,我页面上的 css 菜单栏才有效