Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to redirect to the app store from a deep link if the app is not installed?

I'd like for users to be able to share a link (e.g. app.com/SKFLA - this is primarily because deep links on their own aren't clickable) via Facebook etc. When clicked, this redirects to a deep link app://SKFLA. If the app is installed, this opens the app - this is all working fine so far. But if the app isn't installed, I'd like to open the app store on the relevant page. Is this achievable? Thanks!

like image 510
dan674 Avatar asked Dec 03 '18 15:12

dan674


2 Answers

You need UNIVERSAL LINKS

Please check

IOS https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html

Android

https://developer.android.com/training/app-links/

It might also require some extra server-side setup.

like image 75
Speedyankur Avatar answered Nov 14 '22 21:11

Speedyankur


Not sure about native behavior. We used third-party service like https://branch.io/deepviews/. There is a bunch of similar services.

like image 32
Alex Kiddens Avatar answered Nov 14 '22 21:11

Alex Kiddens