【发布时间】: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?
【问题讨论】:
-
您的问题链接阅读错误,它指向一个未处理的票证,这意味着它仍然未完成/不可用。
-
svgomg-twa演示已弃用。查看 github.com/GoogleChromeLabs/bubblewrap 和 github.com/GoogleChrome/android-browser-helper 以获取更新的实用程序和演示。
标签: android webview android-webview android-tv trusted-web-activity