Hi I am looking for a method to redirect a link sent in an email to my app if it is installed on Android and iOS mostly. I have currently tried with unviersla link but it does not work when we open the link directly from Gmail for example.
Is there another solution please? With Firebase maybe?
Thank you.
CodePudding user response:
you can use this tool to generate a link quickly, branch.io
- go branch.io then signup & create new app, write the name of the app
- got to "Configuration" from left menu select "I have an Android App"
- search for your app and select it then fill other options if you like
- it will give you a link "https://[YOUR_APP_ID ].app.link"
- use this link instead of the default link
they have a way to redirect the link correctly with proper refresh
Note (you don't have to use its SDK in your app)
CodePudding user response:
With Firebase maybe?
What you're describing is known as Firebase Dynamic Links. From the documentation on how it works:
When a user opens one of your Dynamic Links, if your app isn't yet installed, the user is sent to the Play Store or App Store to install your app (unless you specify otherwise), and your app opens. You can then retrieve the link that was passed to your app and handle the deep link as appropriate for your app.
By default Firebase Dynamic Links sets up links of the form, yourproject.page.link like:
https://example.page.link/summer-sale
But you can associate a custom domain with your project, to get links like:
https://example.com/summer-sale
https://example.com/links/promos/summer-sale
https://links.example.com/summer-sale
https://ex.amp.le/summer-sale
