【发布时间】:2019-06-17 10:29:12
【问题描述】:
我们的 TWA 使用 SHA256 指纹进行签名并发布到应用商店。数字资产链接使用相同的密钥,验证TEST成功。但是,该应用仍会打开地址栏。
我使用以下命令验证了我们正在运行一个发布签名的构建(并且在应用商店中发布了相同的版本),并且确实提到 APK 处于发布模式。
命令:jarsigner -verify -verbose -certs your_apk.apk
基本代码: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 配置正确,应用程序必须在没有地址栏的情况下打开,但事实并非如此。
请提出建议。
【问题讨论】:
标签: android progressive-web-apps trusted-web-activity