英文:
PWA to TWA Issue - Android launcherName displays as 'Chrome' instead of the expected name, but it shows fine in other views
问题
发生了什么?
我已经在网站上生成了一个PWA应用程序的源代码。我的PWA配置已经传递到网站上;然而,生成的TWA显示的名称不正确。应用程序的名称在应用列表和设置中正常工作,除了这个地方。
预览:
如何重现这个行为?
- 转到pwabuilder.com并插入您的PWA网站的URL
- 打包为商店
- 找到'Android'并选择生成包
- 填写配置,最重要的是应用程序名称、版本、清单位置,我的当前回退行为是自定义标签页,显示模式设置为独立运行,启用包括源代码,禁用签名密钥,因为我不想上传我的密钥
- 下载包
- 使用Android Studio打开源代码
- 生成签名文件并上传到Google Play
我期望发生什么?
我实际上还没有在这个源代码中做过什么更改。我下载它的原因只是以防我想要更改或更新通知设置,以及在上传到Google Play商店之前对APK进行签名。
我期望的是在导航到那个区域时,我的应用程序名称会显示出来,不仅仅在应用程序设置页面或应用程序列表上,因为用户可能会因此问题而感到困惑。
我使用的环境是什么?
- 操作系统: Android 13
- 浏览器: Chrome
- 版本: 115.0.5790.138
附加上下文
注意: 数字资产链接密钥和来自Google Play商店的内容已经添加到我的资产链接JSON文件中,我从2019年开始使用这个PWA,这是我第一次遇到这个问题。
通过Github: [BUG] Android launcherName is Chrome #4227
英文:
What happened?
I have generated a PWA application with source code on the website. My PWA configuration is passed on the website; however, the TWA generated doesn't show the right name. The application's name works fine in the app list and settings, except for this area.
Preview:
How can you reproduce the behavior?
- Go to pwabuilder.com and insert your PWA url website
- Package for Stores
- Find 'Android' and select Generate Package
- Fill out the configuration more important is App name, version, manifest location, my current fallback behavior is Custom Tabs and display mode is set to standalone, enable Include source code and disable Signing key since i dont want to upload my key
- Download package
- Open the source code with Android Studio
- Generate the Signed file upload to Google Play
What do I expect to happen?
I haven't really touched anything in this source code yet. The reason I downloaded it is just in case I want to change or update the notification settings and also for APK signing before uploading it to the Google Play Store.
What I expect to happen is for the name of my app to show up when navigating to that area, not only on the app settings page or app list, as users may get confused with this issue.
What environment were i'm using?
- OS: Android 13
- Browser: Chrome
- Version: 115.0.5790.138
Additional context
Note: Digital Assets Link key and from Google play store is already added to my asset link json file, Been using this PWA since 2019 and this is the first time I encounter this problem.
Via Github: [BUG] Android launcherName is Chrome #4227
答案1
得分: 0
这个问题已经移动到:
问题 1472686:[BUG] PWA 到 TWA 实现 - Android launcherName 是 Chrome。
根据 peconn 的说法:
不幸的是,这是 Android 一侧的一个 bug - 我们调用 Activity#setTaskDescription 以便使该文本成为您的 PWA 的一部分,但从 Android P 开始,这不再生效。我们无法再做更多了。
(对于未来查看此问题的谷歌用户,Android 的 bug 是 b/161535338,但对公众不可访问。)
英文:
This issue is already moved at:
Issue 1472686: [BUG] PWA to TWA Implementation - Android launcherName is Chrome.
Based on peconn:
Unfortunately this is a bug on Android's side - we call Activity#setTaskDescription in order for that text to be your PWA's, but from Android P onward this doesn't take effect. There's no more we can do.
(For future Googler's looking at this issue, the Android bug is b/161535338, but that won't be accessible to the public.)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论