-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Android] Make Linking.getInitialURL works properly even if current activity is not initialized #24748
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code analysis results:
eslint
found some issues. Runyarn lint --fix
to automatically fix problems.
…ctivity is not initialized
e8e6520
to
a92f8b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @mu29 in c802d0b. When will my fix make it into a release? | Upcoming Releases |
This change seems to be causing this issue #25675 |
UPDATE: I don't believe this change is responsible (or at least not wholly responsible). See update on #25675 |
Summary
Solves #15961 - [ANDROID] Linking.getInitialURL() returns null after exiting the app with back button and using deep linking again (only in production!)
As the issue says, it seems that
currentActivity
is null in IntentModule#getInitialURL. So I used theInteractionManager
to wait until current activity to finish initializing.Changelog
[Android] [Fixed] - In
Linking.getInitialURL
method, use theInteractionManager
to wait for the current activity to finish initializing.Test Plan
Here is an error case. After several trial, my app cannot open deep link.
Video link: https://youtu.be/0qppEs4O1Ls