Skip to content

Deeplinks on iOS fail silently after UISceneDelegate migration #170350

Closed
@rajveermalviya

Description

@rajveermalviya

Steps to reproduce

  1. Checkout Flutter SDK to 40f1695 (Parent commit of UISceneDelegate PR).
  2. flutter run this sample app on iOS Simulator: https://github.com/rajveermalviya/sample_ios_deeplinks
  3. In a separate terminal, run this command to trigger a deeplink:
xcrun simctl openurl booted 'sampleiosdeeplinks:///details'
  1. Notice that the "Details Screen" (/details) is opened on the iOS Simulator.
  2. Now checkout Flutter SDK to 3d8fa62 (UISceneDelegate PR).
  3. Repeat Step 2 and 3 again.
  4. Notice that the "Details Screen" does not open and there are no errors logged in the console.

Expected results

The deeplink should work and the "Details Screen" to open in the sample when triggered.

Actual results

The deeplink is ignored and there aren't any errors are reported.

Code sample

Code sample

https://github.com/rajveermalviya/sample_ios_deeplinks

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
$ flutter doctor -v
[!] Flutter (Channel [user-branch], 3.33.0-1.0.pre.293, on macOS 15.5 24F74 darwin-arm64, locale en-IN) [973ms]
    ! Flutter version 3.33.0-1.0.pre.293 on channel [user-branch] at /Users/rajveer/sdk/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 3d8fa621c1 (11 days ago), 2025-05-30 13:57:40 -0700
    • Engine revision 3d8fa621c1
    • Dart version 3.9.0 (build 3.9.0-172.0.dev)
    • DevTools version 2.46.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and
      upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,739ms]
    • Android SDK at /Users/rajveer/Library/Android/sdk
    • Emulator version 35.5.10.0 (build_id 13402964) (CL:N/A)
    • Platform android-36, build-tools 35.0.0
    • ANDROID_HOME = /Users/rajveer/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [881ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [13ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [13ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] VS Code (version 1.100.3) [10ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.112.0

[✓] Connected device (3 available) [5.8s]
    • iPhone 16 Pro (mobile) • 20B032C1-32A7-4FE6-BC13-7DE6FEC575AC • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 137.0.7151.69

[✓] Network resources [1,306ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowfound in release: 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions