【问题标题】:Is it possible to use PWAS in Android TV? [closed]是否可以在 Android TV 中使用 PWAS? [关闭]
【发布时间】:2021-02-07 00:28:52
【问题描述】:

我正在研究按市场规模支持电视的 Web 框架。 Android、WebOS、Taizen、微软、Apple .. **

我正在使用 Trusted Web Activity / svgomg 为 Android TV 构建基于 PWA 的应用。

它看起来是受支持的: https://github.com/GoogleChromeLabs/svgomg-twa/issues/91

但我尝试为 Android TV 构建 apk/app 并收到此错误:

I/OpenGLRenderer: Davey! duration=1588ms; Flags=0, IntendedVsync=85294375864, Vsync=85294375864, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=85300204600, AnimationStart=85300236800, PerformTraversalsStart=85300260700, DrawStart=85300629400, SyncQueued=85300648400, SyncStart=85300758100, IssueDrawCommandsStart=85300807700, SwapBuffers=85301335900, FrameCompleted=86882937700, DequeueBufferDuration=208000, QueueBufferDuration=409000, 
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@5470549
D/TWALauncherActivity: Using URL from Intent (https://xx/).
D/TWAProviderPicker: Found no TWA providers, using first browser: null
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@2076314
D/EGL_emulation: eglMakeCurrent: 0xea644960: ver 2 0 (tinfo 0xea6c1550)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@d15ce5f
D/TWALauncherActivity: Using URL from Intent (https://xx/).
D/TWAProviderPicker: Found no TWA providers, using first browser: null
D/EGL_emulation: eglMakeCurrent: 0xea644960: ver 2 0 (tinfo 0xea6c1550)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@2adfb62
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@5de11e5
D/TWALauncherActivity: Using URL from Intent (https://xx/).
D/TWAProviderPicker: Found no TWA providers, using first browser: null
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@1b55ae0
D/EGL_emulation: eglMakeCurrent: 0xea644960: ver 2 0 (tinfo 0xea6c1550)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@40ec95b

构建可在 TV 操作系统上运行的 PWA 的替代方案有哪些?或者,至少要在 Android TV 应用中使用 PWA,类似于 svgomg-twa?

【问题讨论】:

标签: android webview android-webview android-tv trusted-web-activity


【解决方案1】:

目前,在 Android TV 上使用网络应用的最简单方法是使用 WebView。 WebView 不支持许多 PWA 功能。

Youtube 使用Cobalt 作为平台在不同平台上运行他们的应用程序。它只支持 HTML、CSS 和 JavaScript 的子集,因此不提供 PWA 支持。

受信任的网络活动目前在 Android TV 上受支持。 http://crbug.com/1054737 有一个开放的功能请求。

对于那些对 Android TV 的 Trusted Web Activity 支持感兴趣的人,我建议转到 issue 并为功能请求加注星标,这样团队就能更好地了解需求并确定优先级。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-15
    • 1970-01-01
    • 2011-11-02
    • 1970-01-01
    • 2020-01-12
    • 2018-07-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多