up votedown votefavorite
<http://stackoverflow.com/questions/42301286/block-mobile-website-to-open-my-app-android-deeplink-google-chrome#>
I have supported deeplinks in my app
<activity android:name=".DeepLinkActivity" android:noHistory="true"></activity>
<activity-alias
android:name="com.example.Launcher"
android:targetActivity=".DeepLinkActivity">
<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="https" />
<data android:scheme="http" />
<data android:scheme="@string/SCHEMA" />
<data android:host="@string/WEB_DOMAIN" />
<data android:host="@string/WWW_WEB_DOMAIN" />
<data android:path="/" />
<data android:path="/x" android:pathPattern="/x/.*" />
</intent-filter>
</activity-alias>
So whenever user clicks on www.example.com the android app asks to open as
app or web that is fine, but I do not want when my users are on mobile site
they should be asked to open in app. I have gone through many posts but
everyone says its not possible but still many websites are handling this
scenario.
As per this Article
<https://paul.kinlan.me/deep-app-linking-on-android-and-chrome/> the
behaviour depends on user gestures, if user is clicking on any link then
Chrome displays a chooser while if user is typing url on browser then it
doesn't.
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/e4815537-e29a-4137-801c-d7a506aebe47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.