我正在尝试在 Android 上实现应用索引。
我有一个意图过滤器,如下:
<intent-filter android:label="@string/app_name">
<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="www.hotelsclick.com" />
<data android:scheme="https"
android:host="www.hotelsclick.com" />
</intent-filter>
我可以使用此命令从 adb 调用活动
adb shell am start -a android.intent.action.VIEW -d "https://www.hotelsclick.com?hotel_id=135738"
因此,我无法使“Fetch as google”功能正常工作。
我想知道:我怎么能理解“fetch as google”功能中什么不起作用?“不支持URI”是一个非常无用的跟踪。我该如何调试呢?
谢谢