Closed ened closed 2 years ago
@victorbonnet hi there - here's a PR which adds a bit of functionality we required during a OAuth integration using this plugin. Please let me know any questions or change requests.
Thanks @ened for the PR.
Do you know if those events could be returned for Android as well?
@victorbonnet From my research, this only works well on iOS (with SFSafariViewController).
Chrome custom tabs have either:
My suggestion would be to merge & publish this and extend the Android side if Chrome custom tabs will get these features.
FYI, There is another PR planned which updates CCT to the latest version with light & dark mode theming support.
Ok thanks for your research.
I would then suggest to rename FlutterWebBrowser.events()
to FlutterWebBrowser.safariEvents()
so that it's clear for the devs. What do you think?
Ok thanks for your research.
I would then suggest to rename
FlutterWebBrowser.events()
toFlutterWebBrowser.safariEvents()
so that it's clear for the devs. What do you think?
I think keeping events and extending it for CCT (or desktop browser, not checked yet) is OK. The documentation explains there are no events for CCT.
Thanks @ened
I have merged and published the new version.
Thank you @victorbonnet & I'll get to the CCT update next
This way, clients can learn when the SafariViewController did a redirect or was closed (either by user or through code).