forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Due to architectural changes that involved switching to SwiftUI the root - deep linking is not handled properly. Currently, when we call Linking.getInitialURL() to retrieve a URL that was used to launch the app we will always get null.
Previously we saved luanchOptions (which contained the deeplink URL) in the application:didFinishLaunchingWithOptions method but with SwiftUI we need to use UIWindowSceneDelegate methods or SwiftUI's onOpenURL.
However, after investigation there are some issues:
- WindowSceneDelegate callbacks are called too late to set launchOptions on bridge.
- SwiftUI's
onOpenURLis called asynchronously and in order to render we need to get those parameters synchronously
matthargett
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working