【发布时间】:2017-04-06 23:56:35
【问题描述】:
我刚刚为我网站的 Android 应用设置了 App Indexing,并按照 https://developers.google.com/app-indexing/android/test(使用 Android Studio 测试 URL)中指定的说明通过 https://www.example.com/test 和 https://example.com/test 进行了一些测试
这是我的 Android 清单中的意图过滤器:
<intent-filter android:label="@string/filter_title_default">
<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="example.com"
android:pathPrefix="/test" />
</intent-filter>
我注意到https://www.example.com/test 失败了,但https://example.com/test 没有。除了为 www.example.com/test 指定另一个意图过滤器之外,我该如何解决这个问题?
【问题讨论】:
标签: android android-app-indexing