-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deepLinkTransformer and deepLinkBuilder called twice in iOS cold start #2093
Comments
Hey, @jv-soares 👋🏼 That is the expected behaviour for deep links in iOS You can find more details about the different scenarios in the official Flutter docs page for deep links |
Hi @mrverdant13 thx for the reply! I've read about these scenarios but i think the connection between these details and the behavior with Another problem i faced and that might be related is that Do you know how i could detect a cold start from the deep link? |
@jv-soares Under the hood, any routing package uses the Pages API, which works by orchestrating the different data flows with a Therefore, on iOS, your app receives a two-stages deep link report as it is the expected behaviour on that particular platform. However, I agree on the need to include these details on the docs. It may be quite frustrating and time-consuming for us to try to face an issue that we cannot actually overcome.
I am not quite sure about how the Besides that utility, I am afraid I do not know of a reliable method to identify a deep link used to launch an app from the terminated state. A potential alternative would be creating a custom set of |
@mrverdant13 many thx for the elaborate response! It was very helpful! I'll take a look into the other issue you've linked. |
Hey guys it seems that
deepLinkTransformer
anddeepLinkBuilder
are being called twice whenever i launch the app on iOS by tapping on a deep link in any notes app. No problem on Android. Anyone knows why?Version: 9.2.0
main.dart
app.dart
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.95.3)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered: