callstack / react-native-visionos

A framework for building native visionOS applications using React
https://callstack.github.io/react-native-visionos-docs/
MIT License
847 stars 28 forks source link

Deep linking is not working #138

Closed okwasniewski closed 3 months ago

okwasniewski commented 3 months ago

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: