提问人:user1859961 提问时间:8/4/2023 更新时间:8/4/2023 访问量:10
如何测试在不部署到 Play 商店的情况下,URL 栏是否会在我的应用中显示?
How can I test whether the URL bar will not be displayed in my app without deploying to the Play Store?
问:
我为我的应用程序制作了一个发布 apk。通过智能手机上的adb工具安装了它。我正在使用 CustomTab 启动一个 url。现在我正在手机上测试它,但我仍然看到 urlbar。
我做了谷歌对我的期望(https://developer.chrome.com/docs/android/trusted-web-activity/integration-guide/)。
- 创建了 intent-filter
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="secure.example.com" />
</intent-filter>
[
{
"relation": [
"delegate_permission/common.handle_all_urls"
],
"target": {
"namespace": "web",
"site": "https://secure.example.com"
}
},
{
"relation": [
"delegate_permission/common.handle_all_urls"
],
"target": {
"namespace": "android_app",
"package_name": "com.example.android",
"sha256_cert_fingerprints": [
"example_fingerprint"
]
}
}
]
我的印象是,只有在运行应用程序时删除 urlbar、将其部署到 playstore 以及从 playstore 安装它时,我才能对其进行测试。
答: 暂无答案
评论