iOS deep links are not working when app comes from a terminated state using the Authenticator
pre-built widget.
#5731
Labels
Authenticator
Issues related to the Authenticator UI Component
bug
Something is not working; the issue has reproducible steps and has been reproduced
Description
I just finished setting up my app's deep link structure as per the Flutter documentation and it all works well except for the iOS launch of deep links when using the
Authenticator
pre-built widget.The Android version of my code works just fine and even when app is terminated it opens the deep link as expected, the issue only occurs in iOS when the app comes from a terminated state. I attach two videos of what I'm talking about:
authentication_video.mov
noauthentication_video.mov
The first video uses the
Authenticator
pre-built widget as outlined in the code that appears next to the simulator, here you can see that deep link doesn't work when app comes from terminated state, when app is already launched it works just fine. The second video uses the bare-boneMaterialApp
widget as seen in the code next to the simulator and in this case the app coming from a terminated state properly handles the deep link.In the first video it is clearly seen that the terminated app doesn't handle deep links correctly, the first time you open this it just stays in the home page (the "/" route) without navigating to the complete path. In the second video it is clear that the deep link works as intended, taking the user to the complete path (the "/help" route).
I was wondering if this is a known issue or if there is some clear problem with my implementation. The complete structure of my
main.dart
file is the following:I was trying to narrow down the causes of failure given this GitHub issue which stated that conditional statements when launching the
MaterialApp
caused issues; this turned out to be true and it seems the culprit right now isAuthenticator
. I first want to fix theAuthenticator
which clearly causes the issue and then see if my other conditions (SplashScreen
andInitializationError
) also affect the deep link behavior. In the video examples I showed above theWidget build(BuildContext context) { ... }
used the simplified versions of the code that appear in the videos.This issue in the Flutter repo goes deep into the functionality of deep links in iOS when app comes from a terminated state.
Categories
Steps to Reproduce
Already explained in the description, try to configure flutter deep links with an app that uses Amplify's pre-built
Authenticator
widget.Screenshots
No response
Platforms
Flutter Version
3.24.3
Amplify Flutter Version
^2.0.0
Deployment Method
AWS CDK
Schema
No response
The text was updated successfully, but these errors were encountered: