混合应用使用Webview在所有Android TV型号上受支持吗?

huangapple go评论72阅读模式
英文:

Are hybrid apps using Webview supported on all Android TV models?

问题

我们想确认是否可以使用Android WebView编写混合应用(HTML5应用程序+本地代码),以及是否可以在所有Android TV型号上加载此类应用程序。有一些帖子说用户可能需要从PlayStore单独安装Android WebView,但我们不想要这样。我们希望用户可以像安装本机应用程序一样,从Playstore安装在Android WebView内运行的混合应用程序,无需额外的安装。

我们编写了一个混合应用程序,并在Android TV模拟器上进行了测试,但我们不确定这样的应用程序是否可以直接从Playstore部署,并且是否可以在所有Android TV型号上运行,无需任何额外步骤,就像其他Android应用程序一样。

英文:

We wanted to check if it's ok to write a hybrid app (html5 app + native code) using Android web view and whether such an app can be loaded in all Android TV models. There are some posts which say users may have to install the Android Webview separately from PlayStore which we don't want. We want users to install the hybrid app running inside the Android webview from Playstore same as a native app with no extra installation required.

We wrote a hybrid app and tested it on an android tv simulator but we are not sure if such an app can be deployed directly from Playstore and will work on all Android TV models without any extra step needed just like any other android app.

答案1

得分: 1

是的,使用WebView的混合应用在Google Play商店上支持Android TV设备。

Google自己的Android TV上的YouTube应用使用基于HTML5的Cobalt框架。

此外,在配备Google Play商店的认证Android TV设备上,WebView始终可用并定期更新。

在Android TV上发布的建议(与Android手机相比)

  1. 确保您的应用在模拟器或真实设备上都能正确使用d-pad。
  2. 根据您的Mac或PC的规格,模拟器可以比真实设备运行得更快。我建议您在诸如Chromecast for Google TV之类的廉价Android TV设备上进行测试。
  3. 当您上传您的应用到Google Play控制台时,您必须选择让您的应用在Android TV上可用。请在发布 > 设置 > 高级设置 > 表单因素(选项卡)中查找“+ 添加表单因素”。
英文:

Yes, hybrid apps using a WebView are supported on the Google Play Store for Android TV devices.

Google's own YouTube app for Android TV uses the Cobalt framework which is a HTML5 based.

Also, on certified Android TV devices that come with the Google Play Store, WebView is always available and updated regularly

Advice for publishing on Android TV (compared to Android phones)

  1. Make sure your app works properly with a d-pad, either in the emulator or on a real device
  2. Depending on the spec. of your Mac or PC, the emulator can run apps a lot faster than real devices. I advise you test on a cheap Android TV device such as the Chromecast for Google TV, for example.
  3. When you upload your app to the Google Play Console, you must opt-in to have your app available for Android TV. Look in Release > Setup > Advanced Settings > Form factors (tab), click + Add form factor.

huangapple
  • 本文由 发表于 2023年5月29日 19:55:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76357143.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定