I am seeking for a way to generate a link that make user go to the app store or google play page of an app, based on their platform, to ask them to install the app. After they install through such a link, they should be redirected to a page once they log in successfully. The redirection should not occur if the app is not installed through such a link.
I checked iOS's universal link and Android's app link, which both seem to be working only if users have installed the app already. Is there a way to trigger that behaviour when it is not installed?