我从以下位置抓取了移动chrome应用程序的“浏览器示例”:
https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/browser。
在本地windows7机器上运行良好,但是,尝试通过CADT和CDE进行测试时,我会得到一个空白的Webview。尝试通过CCA在终端中得到以下输出:
cca v0.4.3
## First-time build. Detecting available SDKs:
Android Development: SDK configured properly.
## Running Cordova Command: platform add android
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: com.your.company.BrowserSample
        Name: Browser Sample
        Android target: android-19
Copying template files...
Project successfully created.
## Updating plugins based on manifest.json
Permission not recognized by cca: webview (ignoring)最后一行(权限...)可能是问题,也可能是Android的目标。有人成功地将Chrome Apps Webview部署到移动设备(android)上了吗?
更新:移动Chrome应用程序似乎还不支持该标签:
来自:https://developer.chrome.com/apps/chrome_apps_on_mobile
However, not all Chrome JavaScript APIs are implemented. And not all Chrome Desktop features are available on mobile:
no <webview> tag
no IndexedDB
no getUserMedia()
no NaCl
You can track progress from our API Status page.有没有办法将第三方内容引入到移动chrome应用程序中?
给移动Chrome应用程序团队的建议,似乎应用程序的主机浏览器被称为"Webview“(Crosswalk?)他们的标签叫做Webview。也许我们需要新的术语来描述拼图的每一块。Crosswalk (主机)和ChromeView (标签)怎么样?
发布于 2014-11-13 21:16:24
实际上,我们不支持<webview>标签,但是Chrome Apps for Mobile确实支持iframe(与桌面不同),所以你可以使用它作为后备。
我同意Android/iOS WebView组件和chrome应用程序标签有一些术语上的混淆,但最终还是说得通。所有平台都有一个具有特权api访问权限的“本地”主机,并且可以在非特权上下文中嵌入外部内容。
此外,我们的list of caveats在github上保持最新。我们现在在Android上支持getUserMedia (感谢crosswalk和kitkat webview!),在Android和iOS8上支持IndexedDB。
https://stackoverflow.com/questions/26900874
复制相似问题