How to Set Up Deferred Deep Linking

I have universal links configured for my iOS app which work as expected when the app is installed. When the app is not installed the universal link will go to the browser as expected.

What I want to do is redirect to the app store, allow the user to install the app, then redirect them to the initial universal link. Redirecting them to the app store isn't the hard part I can achieve that from the webpage, however I don't know how to save a reference to that initial link to redirect them once they instal the app.

What I want the flow to be for a user who doesn't have the app is:

  1. visit a universal link (example.com/UUID)
  2. redirect to the app store and install the app
  3. open the app and redirect to example.com/UUID

I've seen some ways people are doing this with the clipboard but I don't love that solution, I also don't want to use a 3rd party service if I can avoid it - how are the 3rd party services making this happen?

How to Set Up Deferred Deep Linking
 
 
Q