小编Sim*_*nci的帖子

TWA - 数字资产链接正常,但地址栏仍然可见

我开发了一个渐进式 Web 应用程序,我想将它作为受信任的 Web 活动发布在 Play 商店中。这是https://www.bagnoadriatico.it

遵循本指南 https://developers.google.com/web/updates/2019/02/using-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.
]
Run Code Online (Sandbox Code Playgroud)

然后我签署了 …

android gradle progressive-web-apps trusted-web-activity

5
推荐指数
1
解决办法
1706
查看次数