Skip to content

Deep linking is not working #138

@okwasniewski

Description

@okwasniewski

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 onOpenURL is called asynchronously and in order to render we need to get those parameters synchronously

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions