'App links not getting verified in Android

I want to verify my app links as these are directly opening in browser in Android 12. I referred this documentation to verify my app links. But it still shows 0 verified links in my app info. Below is my code of SplashActivity in manifest file

<activity
        android:name="in.powerplay.splash.SplashActivity"
        android:exported="true"
        android:screenOrientation="portrait"
        android:theme="@style/SplashTheme"
        tools:ignore="LockedOrientationActivity">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

        <intent-filter android:autoVerify="true">
            <category android:name="android.intent.category.BROWSABLE" />
            <category android:name="android.intent.category.DEFAULT" />

            <action android:name="android.intent.action.VIEW" />

            <data android:host="portal.getpowerplay.in" />
            <data android:host="profile.getpowerplay.in" />

            <data android:scheme="https" />
            <data android:scheme="http" />
            <data android:scheme="app" />
            <data android:scheme="pp" />
        </intent-filter>
    </activity>

I also added the links in assets.json file and you can see in the below screenshots that it's working fine

screenshot 1 screenshot 2

Any help would be appreciated. Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source