0

我们的 TWA 使用 SHA256 指纹签名并发布到应用商店。数字资产链接使用相同的密钥,验证TEST成功。但是,该应用程序仍会打开地址栏。

我使用以下命令验证了我们正在运行发布签名的构建(并且在应用商店中发布了相同的版本),并且确实提到 APK 处于发布模式。

命令:jarsigner -verify -verbose -certs your_apk.apk

(命令参考:https ://medium.com/@chintanrathod/verify-if-apk-is-signed-with-certificate-or-debug-build-44a729e684ca )

基本代码:https ://github.com/GoogleChromeLabs/svgomg-twa

另外,这里是 app/build.gradle 文件的相关内容。

 buildTypes {
        release {
            minifyEnabled true
            debuggable false
        }
    }

这是 twaManifest 信息:

def twaManifest = [
    applicationId: 'in.xyz.app',
    hostName: 'xyz.in', // The domain being opened in the TWA.
    launchUrl: '/', // The start path for the TWA. Must be relative to the domain.
    name: 'XYZ', // The name shown on the Android Launcher.
    themeColor: '#FFCD59', // The color used for the status bar.
    backgroundColor: '#ffcc99' // The color used for the splash screen background.
]

我们预计,由于“数字资产链接”有效,并且 PWA + TWA 配置正确,应用程序必须在没有地址栏的情况下打开,但事实并非如此。

请建议。

4

1 回答 1

4

似乎https://xyz.in重定向到https://www.xyz.in。第一个列出在应用程序中进行验证,第二个不是。尝试将其更改hostName为 www.xyz.in。

于 2019-06-17T10:48:53.607 回答