-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Closed
Labels
p: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically
Description
Steps to Reproduce
- Open a url with launch()
- attempt to close with closeWebView()
- nothing happens
Problem
In UrlLauncherPlugin.m around line 133, a completion handler is set that resets _currentSession to nil, however completion of presentViewController is called as completion of showing the viewcontroller, and not at the end of the web browsing.
As such, _currentSession is reset to nil almost immediately, and closeWebView() will do nothing.
I am guessing safariViewControllerDidFinish in the delegate should instead be used.
icyleaf, yohom and BirdyF
Metadata
Metadata
Assignees
Labels
p: url_launcherPlugin to launch external applicationsPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-iosiOS applications specificallyiOS applications specifically