我的应用程序中的深层链接问题
Deeplinking issue in my app
我想在打开这个 url 时打开我的应用程序(例如:https://www.google.com)
当我在浏览器中打开 url 时,我无法获得打开您的应用程序的任何选项。
我已经在清单 activity 标签中实现了深度链接代码。
<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:host="www.google.com"
android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
但是为什么它不起作用。如果我这边有任何错误,请告诉我。
我为此做了很多谷歌搜索,但在我的代码中找不到任何问题。
android:autoVerify="true"
这用于App Links。
系统将通过解析位于 https://www.google.com/.well-known/assetlinks.json.
的文件来检查应用程序是否有权处理此类 url
由于您不是 google,因此您无权使用 google 的 url 的应用程序链接方法。
这些 url 可能已经被 google 自己的应用程序捕获(在同一文件中定义)。
我想在打开这个 url 时打开我的应用程序(例如:https://www.google.com) 当我在浏览器中打开 url 时,我无法获得打开您的应用程序的任何选项。
我已经在清单 activity 标签中实现了深度链接代码。
<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:host="www.google.com"
android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
但是为什么它不起作用。如果我这边有任何错误,请告诉我。
我为此做了很多谷歌搜索,但在我的代码中找不到任何问题。
android:autoVerify="true"
这用于App Links。
系统将通过解析位于 https://www.google.com/.well-known/assetlinks.json.
由于您不是 google,因此您无权使用 google 的 url 的应用程序链接方法。 这些 url 可能已经被 google 自己的应用程序捕获(在同一文件中定义)。