flutter_custom_tabs
flutter_custom_tabs copied to clipboard
Method to close the custom tab?
me to
need close tab after hendle deep link
@ashkryab @hiddencaliber did you find a solution to this issue?
If the website is yours, you can use JavaScript window.close() command to close the browser.
I agree with @ashkryab. After deep linking into the app from a custom tab, the previous custom tab seems to still open in the background. This results in the behavior, that no other custom tab can get opened while the app is running.
@droibit is it possible to close previously opened custom tabs?
@daniellampl
Please consider url_lancher to open a deep link URL,
as I can not provide a good solution from this plugin for now.
I understand that flutter_custom_tabs and deep links are incompatible,
so I'll consider a fundamental solution.
@daniellampl Please consider
url_lancherto open a deep link URL, as I can not provide a good solution from this plugin for now.I understand that
flutter_custom_tabsand deep links are incompatible, so I'll consider a fundamental solution.
deep links work for Android but not for iOS.
Dupe of https://github.com/droibit/flutter_custom_tabs/issues/33 ?
Nice work on this plugin @droibit , thanks 👍
But also, this is a critical issue.
Are there any plans to merge in something like the functionality mentioned previously?
Or something similar to closeInAppWebView?
Same here.. I'd want to get the url in return once we hit a deep/app link url and also close the tab automatically..
Awesome plugin though!!
There is an existing method to do this! And it is in the docs.
Apologies for the oversight 😅
Just call closeCustomTabs.
Thanks @droibit 🎉
This kinda addresses https://github.com/droibit/flutter_custom_tabs/issues/33 too
Hi,
Thank you for your comments and insights. As you mentioned,
flutter_custom_tabs currently offers the closeCustomTabs function to manually close Custom Tabs.
I'm glad to hear that this function may match your use case. If you are considering using OAuth,
you may want to explore plugins like flutter_web_auth_2 for a better user experience as it leverages OS capabilities.
For now, there are no immediate plans to add additional functionality beyond manually closing Custom Tabs.
However, I recognize that closing Custom Tabs is a key use case for OAuth,
and I will begin considering support for OAuth authentication in future versions of the plugin.
Thank you for your feedback and suggestions.