How do I deep link to the IOS store


#1

When I share content in my app I want users who don’t have my app that click the link to be directed to the App Store and then to the relevant content. How do I do this? I have an express backend.


#2

Hey @omorhefere!

Great question, I recommend checking out the docs https://docs.expo.io/versions/latest/guides/linking.html, in those docs you will find this:

Opening links to other apps
If you know the custom scheme for another app you can link to it. 
Some services provide documentation for deep linking, for example the 
Lyft deep linking documentation describes how to link directly to a 
specific pickup location and destination:

lyft://ridetype?id=lyft&pickup[latitude]=37.764728&pickup[longitude]=-122.422999&destination[latitude]=37.7763592&destination[longitude]=-122.4242038

It’s possible that the user doesn’t have the Lyft app installed, in which case you may 
want to open the App / Play Store, or let them know that they need to install it first. 
We recommend using the library react-native-app-link for these cases.

Here is the link to the github repo: https://github.com/fiber-god/react-native-app-link! Let me know if you have any other questions. Thanks for using Expo!


#3

Thank you for helping me out. I looked at the library and it seems to help you open links in your app.

What i want to do is to be able to share links from my to imessage/whatsapp and then have people who don’t have my app click it then be redirected to the app store

What i am looking to do is create universal app links for my app


#4

I’d also like to do this. This is pretty standard native functionality. Is there any way to do this atm? If not, is there a feature request?


#5

I’m my search for you I found this section of the documentation https://docs.expo.io/versions/latest/guides/linking.html#linking-to-your-app

Let me know if this isn’t what you’re looking for and I’ll try to find you something else.


#6

Thankyou. I’ve implemented this but this only works when you have the app installed

I’m trying to implement universal links, the kind you can click to open the or the App Store if the app isn’t installed.


#7

Ignore this post. Gave you some wrong info.


#8

If you just want to open a link to the app store, you don’t need to configure anything special, you can open it like any other url:

Linking.openUrl('https://itunes.apple.com/us/app/expo-client/id982107779?mt=8')

On modern iOS devices I believe this will open the App Store app directly. If not, you can also try using the itms:// scheme rather than https in the url.


#9

Hi Ben thankyou. The problem I have is that when I share content from my app. I share a link that opens the content. If the person doesn’t have the app that link is useless.

What I want to do is share a link ( universal link/ app link )

That would open the app if they have it installed or open the App Store if they don’t


#10

Hey @omorhefere, you may want to look into using Branch. Seems like it might fit your use case:


#11

Thankyou i will take a look


closed #12

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.