droibit / flutter_custom_tabs

A Flutter plugin for mobile apps to launch a URL in Custom Tabs/SFSafariViewController.
https://pub.dartlang.org/packages/flutter_custom_tabs
Apache License 2.0
136 stars 68 forks source link

Listen to when custom tabs closes #8

Open KingIdee opened 5 years ago

KingIdee commented 5 years ago

Is there a way of knowing when the user has selected done or cancel in the chrome tab or better still, is there a way to close the tab manually?

prologikus commented 8 months ago

For closing the tabs, you can use: CustomTabsPlatform.instance.closeAllIfPossible()

For knowing when the action is done, you need to have control of the website you're in, and call an API from the website to inform the app that the action is done.