是否嵌入"网页视图"成" Chrome应用"然后"部署到移动"工作?视图、网页、工作、QUOT

2023-09-06 07:43:39 作者:人心像海

我抓住从移动Chrome应用浏览器样本:

I grabbed the mobile chrome apps "Browser Sample" from:

https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/browser.

做工精细本地Windows 7的机器,但是,在尝试通过CADT和CDE测试,我会得到一个空白的网页视图。通过CCA试图得到这个输出端子:

Works fine on local windows 7 machine, BUT, attempting to test via CADT and CDE, I would get a blank Webview. Attempting via CCA got this output in the terminal:

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应用web视图部署到移动(机器人)取得了成功?

The last line (Permissions...) may be the issue or the Android target. Has anyone had success with getting the Chrome Apps Webview to deploy to mobile (android)?

更新:看来标签没有在移动Chrome应用尚不支持:

UPDATE: It appears the tag is not yet supported in the Mobile Chrome Apps:

来源: 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应用?

Is there a work around for bringing third party content into the mobile chrome app?

建议到移动Chrome应用团队,似乎应用主机的浏览器被称为网页视图(人行横道?)他们是TAG称为网页视图。也许我们需要新的术语来描述每一块拼图。如何人行横道(主机)和ChromeView(标签)?

Suggestion to Mobile Chrome Apps Team, it seems the apps host browser is called "Webview" (Crosswalk?) and their is at TAG called Webview. Maybe we need new terms to describe each piece of the puzzle. How about Crosswalk (host) and ChromeView (tag)?

推荐答案

事实上,我们不支持&LT;的WebView&GT; 标记,但Chrome应用为手机做支撑内部框架(不像在桌面上),所以你可以使用它作为一个后备也许吧。

Indeed, we do not support the <webview> tag, but Chrome Apps for Mobile do support iframes (unlike on desktop), so you may use that as a fallback perhaps.

同意,有一些术语的混乱与Android / iOS版的WebView组件和Chrome应用标签 - 但最终它是有道理的。所有平台有特权的API访问一个本土化的主机,并可以嵌入在一个无特权的环境外部内容。

Agree that there is some terminology confusion with Android/iOS WebView component and the chrome apps tag -- but eventually it makes sense. All platforms have a "native" host with privileged api access, and can embed external content in an unprivileged context.

此外,我们的 是不断更新在GitHub上的注意事项的清单。我们现在支持getUserMedia在Android(感谢人行横道和奇巧的WebView!),以及IndexedDB的Andr​​oid和iOS8上。

Also, our list of caveats is kept up to date on github. We now support getUserMedia on Android (thanks crosswalk and kitkat webview!), and IndexedDB on Android and iOS8.

 
精彩推荐
图片推荐