I have a website which enables the user to make a search query. The query might take some time to complete (minutes to days), and I would like to enable the user to download
This question is pretty old but also very popular, so it's definitely worth knowing that now this use case is officially supported by Firebase, precisely Firebase Dynamic Links.
It supports just opening app and deferred deep linking, which means that after installing app, when app is starting, you can retrieve data (link) that was used to install the app.
It's built on top of App Linking, so you still need the same intent-filter
as before.
In short, you need to add implementation 'com.google.firebase:firebase-dynamic-links:VERSION'
and retrieve link from instance of FirebaseDynamicLinks
class.
Of course you need to change links on website with those generated in Firebase console, but the good news is that these links are "dynamic" (as the name implies) so they work on all systems.
For all detailed info and set up with that use case up go here: https://firebase.google.com/docs/dynamic-links/use-cases/web-to-app