我开发了一个渐进式 Web 应用程序,我想将其作为可信 Web 活动在 Play 商店中发布。
它是https://www.bagnoadriatico.it https://www.bagnoadriatico.it
遵循本指南https://developers.google.com/web/updates/2019/02/using-twa https://developers.google.com/web/updates/2019/02/using-twa
我从下载了该示例https://github.com/GoogleChromeLabs/svgomg-twa https://github.com/GoogleChromeLabs/svgomg-twa
我改变了配置
def twaManifest = [
applicationId: 'com.simovinci.bagnoadriatico',
hostName: 'www.bagnoadriatico.it', // The domain being opened in the TWA.
launchUrl: '/mobile', // The start path for the TWA. Must be relative to the domain.
name: 'BagnoAdriatico di Casalborsetti', // The name shown on the Android Launcher.
themeColor: '#ff5c14', // The color used for the status bar.
backgroundColor: '#ffff00' // The color used for the splash screen background.
]
然后我签署了 apk,构建并在 Play 商店上发布。
在网站中我通过 Digital Asset Link 创建了关联https://www.bagnoadriatico.it/.well-known/assetlinks.json https://www.bagnoadriatico.it/.well-known/assetlinks.json“语句列表生成器和测试器”表示操作成功
“成功!主机 www.bagnoadriatico.it 授予应用程序深度链接到 com.simovinci.bagno adriatico。”https://developers.google.com/digital-asset-links/tools/generator https://developers.google.com/digital-asset-links/tools/generator
地址栏仍然可见,我不知道为什么。
https://www.bagnoadriatico.it/mobile https://www.bagnoadriatico.it/mobile返回 200 http 代码。
PWA 经过 100% Lighthouse 验证。
钥匙指纹正确
=========================================
我尝试设置 launchUrl = "/" (在我删除 302 到移动版本之前)但没有任何改变。地址栏仍然可见。