I've tried to open my app directly, without opening google play store or browser, when user tap on the link.
I've tried this code:
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<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="fptest"
android:host="forgot"
android:pathPrefix="/"/>
</intent-filter>
</activity>
I'm using link as follows
<a href="intent://TestApplication#Intent;scheme=fptest;package=com.example.testapplication;end">
Open App
</a>
where ,
TestApplication -- my app name
package -- com.example.testapplication
But it always open Google Play or a Browser , not my app.
I want to open my app from a link eg : fptest://forgot . I dont want to use http as scheme