-
Notifications
You must be signed in to change notification settings - Fork 74
App links and custom tabs #271
Description
Hello,
Thanks for a great package!
We are observing an issue regarding App Links and Custom Tabs on Android.
The issue
We are launching a Custom Tab that through interactions ends up launching another app to do some confirmation (like a payment app or national identity app). This app then ends up launching our app again through an App Link. This causes the Custom Tab that our app opened to close so the flow cannot finish and any state that was in the Custom Tab is lost.
Simple flow;
- Our app launches a Custom Tab
- Interaction inside the Custom Tab ends up launching another app (third part payment app etc.)
- This third party app ends up using an App Link to our app
- The App Link is picked up by our app
- The Custom Tab disappears/closes
- The flow stop prematurely and cannot finish because the Custom Tab is now closed.
My hunch about the issue
The Custom Tab is launched from another Android activity than the .MainActivity where the Flutter engine is bootstrapped. This causes any App Links / Deep Links hooked to the .MainActivity using intent-filter to launch and therefore the Custom Tab disappears as it's hooked to another activity. Another possibility is the android:launchMode="singleTop" for the .MainActivity.
Is there anything to my hunch and also is this a known issue?