问题描述
我正在尝试为我的添加设置 Android 应用程序链接,但它们不起作用。 我修改了 manifest.xaml (android/app/src/main),添加:
<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="http" android:host="example.com" />
<data android:scheme="https" />
</intent-filter>
并在我的网站 (./well-kNown/assetlinks.json) 中添加了一个 assetlinks.json。
当我通过浏览 https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://example.com&relation=delegate_permission/common.handle_all_urls 验证它时,它说没有错误,但当我用 adb shell am start -a android.intent.action.VIEW -d "https://example.com"
打开它时我的应用程序链接不起作用
当我尝试使用 adb shell dumpsys package domain-preferred-apps
查找应用程序链接时,它说它不存在。
我已经在 assetlinks.json 上验证了我的 sha256 密钥和我的应用程序包...
有人可以帮我吗:)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)