auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

Deeplink builder does not working

Open VB10 opened this issue 8 months ago • 0 comments

Hello team, I'm trying to move auto_route. So that important point for me deeplink. Currently I'm using applinks and it can handle everything but i could not catch in url in builder method. Do you have any idea? ( That's problem happen in IOS side i haven't checked yet.)

image

I'm sure I met all requirements. Could anyone using this share any code or suggestions?

  routerConfig: _appRouter.config(
            deepLinkBuilder: (deepLink) {
              print(deepLink.path);
              if (deepLink.path.startsWith('/parent')) {
                // continute with the platfrom link
                return deepLink;
              } else {
                return DeepLink.defaultPath;
                // or DeepLink.path('/')
                // or DeepLink([HomeRoute()])
              }
            },
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.16.3, on macOS 14.1.1 23B81 darwin-arm64, locale en-TR)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.2.1/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/vb10/development/flutter. Consider adding /Users/vb10/development/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
[✓] VS Code (version 1.84.2)
[✓] VS Code (version 1.85.0-insider)
[✓] Connected device (6 available)
    ! Error: Browsing on the local area network for Ekin iPhone’u. Ensure the device is unlocked and attached with a cable or associated with the same local
      area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

! Doctor found issues in 1 category.

Thanks!

VB10 avatar Dec 07 '23 17:12 VB10