Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload failed You should use both http and https as schemes for your web intent-filters

Upload failed

You should use both http and https as schemes for your web intent-filters.

I am getting this error while uploading the instant app to Play Store. I have declared intent filters for both http and https in Manifest as below.

<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:scheme="http"
                    android:host="XXXX" />
            </intent-filter>
            <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:scheme="https"
                    android:host="XXXX" />
            </intent-filter>

Could you please let me know what could be wrong and why i am getting this error while uploading to Play Store ?

like image 382
Android Geek Avatar asked Jun 19 '17 01:06

Android Geek


3 Answers

Try to declare IntentFilter like this

<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:scheme="http" />
    <data android:scheme="https" />
    <data android:host="yourhost.ru" />
    <data android:pathPattern="/featurePath" />
</intent-filter>
like image 81
mol Avatar answered Nov 11 '22 20:11

mol


you have to define both in the same intent filter

   <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="XXXX"
            android:scheme="http" />

        <data
            android:scheme="https"
            android:host="XXXX" />
    </intent-filter>
like image 35
Dart Avatar answered Nov 11 '22 21:11

Dart


        <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:scheme="http"
                android:host="XYZ"
                android:pathPattern="/app" />

            <data
                android:scheme="https"
                android:host="XYZ"
                android:pathPattern="/app" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <meta-data
            android:name="default-url"
            android:value="https://XYZ/app" />
    </activity>

Had the same problem. The above manifest solved my problem

like image 1
Vigneshwaran Avatar answered Nov 11 '22 20:11

Vigneshwaran