I'm implementing a web-based payment flow which uses the chrome custom tabs implementation of the Flutter package flutter_inappwebview.
I also tried flutter_custom_tabs and url_launcher. No matter what I try, the custom tab on Android opens in a new window. So when I check my "recent apps" I see that it's not part of my own app.
When I now go into an asynchronous payment flow the system sometimes kills my app while being in the browser as it is in the background and the app link into my app leads to the home page but not into the payment screen any more.
Is there a way to ensure that the browser opens inside my app to prevent the app from being killed?