r/iOSProgramming • • 7d ago

Question Link > Web page prompting app install > Install > Open app and the app automatically goes to the page specified in the link. Is it possible to use a deep link like this?

4 Upvotes

15 comments sorted by

1

u/ThalesMother9938 7d ago

The piece that trips people up is that iOS has no install referrer like Android does , so nothing survives the App Store install for you to read on first launch. That leaves roughly three options: a third-party SDK like Branch or AppsFlyer that matches the click to the install by fingerprint, writing a token to the clipboard on your web page and reading it on first launch (iOS will show the paste permission prompt), or an App Clip. I haven't shipped any of these myself, so I can't tell you which one holds up best. Which one fits depends on how much you care about that paste prompt versus adding an SDK.

1

u/beatpaq 7d ago

i never knew appclips existed. unfortunately it prompts you to open them up when you find them via link so i don't think i will use that one. thanks for the info.

1

u/Due-Count3348 4d ago

one thing that might help with the clipboard route: the paste alert only shows when the app reads the pasteboard on its own. if your first screen shows a UIPasteControl (the system paste button, ios 16+) and the user taps it, there's no alert. so the flow becomes: your web page copies the link when they tap "get the app", first launch asks "continue where you left off?" with that paste button, and you route from there

1

u/beatpaq 4d ago

i like you

2

u/Due-Count3348 3d ago

haha thanks! if you try the paste-button flow and want a second pair of eyes on it, happy to help

3

u/therealswood2 7d ago

Search for “deferred deep linking”. It’s a WHOLE thing.

Good luck.

1

u/quietstoners 6d ago

has it gotten even worse to deal with after the recent privacy changes?

1

u/Western_Cap_6934 7d ago

A normal Universal Link handles the installed-app case, but does not by itself carry that click through an App Store install. Keep a fallback that asks the user to reopen the original link after installing.

1

u/Caparisun 7d ago

x-connected-callback?

1

u/Needle_In_Red 7d ago

yeah thats deferred deep linking. no install referrer on ios so its either branch/appsflyer or copy the link to clipboard on the web page and read it on first launch, tho the paste prompt makes that a bit janky

1

u/Stock-Cellist-6930 4d ago

It's possible, but that's a more complicated subject than it might seem - we are maintaining a tooling for that and there are a lot of edge cases. In case you want to dig slightly deeper: https://detour.swmansion.com/docs/platform/architecture/architecture-limitations/

1

u/[deleted] 5d ago

[removed] — view removed comment

1

u/AutoModerator 5d ago

Hey /u/Overall-Object-3274, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.

Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/[unknown] 7d ago

[removed] — view removed comment

1

u/AutoModerator 7d ago

Hey /u/pujun125, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.

Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.