Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev-launcher][ios] fix deferred deep links #18614

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

ajsmth
Copy link
Contributor

@ajsmth ajsmth commented Aug 11, 2022

Why

Closes ENG-5284

The issue outlines some strange / annoying popup behaviour with the deep link modal in the dev launcher.

After taking a closer look, it was actually a symptom of these deep links never being passed through properly, so these deferred deep links were not actually working:

Simulator.Screen.Recording.-.iPhone.12.-.2022-08-11.at.12.19.06.mp4

How

In the didStartWithSuccess method of the delegate handler, we now loop over the initial launch options and any additional launch options captured by the EXDevLauncherController - this assumes that more recent deep links captured by the deep link registry will potentially override the initial url that the app might be launched with - I figured this was the most sensible approach

Test Plan

Deep links are now properly captured, passed to the app instance, and are consumed:

Simulator.Screen.Recording.-.iPhone.12.-.2022-08-11.at.12.21.23.mp4

Checklist

@linear
Copy link

linear bot commented Aug 11, 2022

ENG-5284 iOS deferred deep link popup shows multiple times

This popup seems a bit buggy - sometimes it shows the popup a few times, sometimes it continues to pop up and show a previously handled deep link - I think we should spent some time cleaning this up

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Aug 11, 2022
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Aug 11, 2022
Copy link
Contributor

@esamelson esamelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@ajsmth ajsmth merged commit 07aadfb into main Aug 15, 2022
@ajsmth ajsmth deleted the andrew/eng-5284-ios-deferred-deep-link-popup-shows branch August 15, 2022 21:23
Ddv0623 pushed a commit to preciofishbone/expo that referenced this pull request Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants