处理我的应用程序中的链接
Handling links in my application
我想处理这个 URL
但我的代码不工作。
实际上,当我点击这个 URL
时,我的 phone 并没有提示我我的应用程序,它只是通过浏览器打开。
我认为应用程序有问题 #!在 URL
.
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="melkplus.com"
android:scheme="http"
android:pathPrefix="/#!/property/details/" />
</intent-filter>
以 #
开头的所有内容都不是 URL 路径的一部分,而是片段。您不能过滤片段。
我想处理这个 URL
但我的代码不工作。
实际上,当我点击这个 URL
时,我的 phone 并没有提示我我的应用程序,它只是通过浏览器打开。
我认为应用程序有问题 #!在 URL
.
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="melkplus.com"
android:scheme="http"
android:pathPrefix="/#!/property/details/" />
</intent-filter>
以 #
开头的所有内容都不是 URL 路径的一部分,而是片段。您不能过滤片段。