Skip to content

Crash on iOS 12 #399

@zhenzhg

Description

@zhenzhg
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011225c6fb __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x0000000111800ac5 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011225c555 +[NSException raise:format:] + 197
	3   Foundation                          0x00000001112865e1 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 488
	4   Foundation                          0x0000000111286a68 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 84
	5   Runner                              0x000000010f9bbc79 -[FlutterWebviewPlugin closeWebView] + 361
	6   Runner                              0x000000010f9b8417 -[FlutterWebviewPlugin h<…>
Lost connection to device.

This is the code:

class WebViewPageState extends State<WebViewPage> {
  String _url;
  String _title;

  WebViewPageState(this._url, this._title);

  @override
  Widget build(BuildContext context) {
    return WebviewScaffold(
          appBar: AppBar(
            title: Text(this._title),
          ),
          url: this._url,
          withLocalStorage: true,
          hidden: true,
          withZoom: false,
          withJavascript: true,
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions