简体   繁体   中英

Google search console and app indexing: URI unsupported

I'm trying to implement app indexing on Android.

I've got an intent-filter, the following:

            <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>

and I can call the activity from adb with this command

adb shell am start -a android.intent.action.VIEW -d "https://www.hotelsclick.com?hotel_id=135738"

Thus, I cannot manage to make the "Fetch as google" feature work.

在此处输入图片说明

I was wondering: how can I understand what's not working in the "fetch as google" feature? "URI unsupported" is quite a useless trace. How can I debug this?

Thank you

"Fetch as Google" can fetch a page from either the current version on Google Play or from an APK that you upload here.

If you are using a local upload, then you will see a "tick" mark in the "Local Upload APK" column after the fetch results are shown (check image below).

在此处输入图片说明

Since, it is not there in the image you provided, the fetch is happening from the Google Play version of your app. Check if it has app indexing implemented in this version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM