Trying to understand why from the search results Google answers to stackovervlow.com immediately open in the application? I want to do the same in my application.
In the documentation, this is very similar to App Links. But for the link to open in the application without questions, an automatic verification is required. I do not find it either in the application (the corresponding fragment of the manifest below) or on the site ( https://stackoverflow.com/.well-known/assetlinks.json returns 404, although I would expect to meet the file there ).
How did they do it?
<activity android:name="com.stackexchange.marvin.ui.LinkDispatchActivity" android:launchMode="singleTask" android:noHistory="true"> <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:pathPrefix="/questions/" /> <data android:pathPrefix="/q/" /> <data android:pathPrefix="/a/" /> <data android:pathPrefix="/users/" /> <data android:pathPrefix="/u/" /> <data android:path="/" /> <data android:host="stackoverflow.com" /> <data android:host="meta.stackoverflow.com" /> <data android:host="serverfault.com" /> <data android:host="meta.serverfault.com" /> <data android:host="superuser.com" /> <data android:host="meta.superuser.com" /> <data android:host="stackapps.com" /> <data android:host="askubuntu.com" /> <data android:host="meta.askubuntu.com" /> <data android:host="mathoverflow.net" /> <data android:host="meta.mathoverflow.net" /> <data android:host="*.stackexchange.com" /> <data android:host="pt.stackoverflow.com" /> <data android:host="ja.stackoverflow.com" /> <data android:host="ru.stackoverflow.com" /> </intent-filter> </activity>