Skip to content

How to handle Time Out #444

@rodrigoavalente

Description

@rodrigoavalente

Hello, I'm trying to do something with the webview if a time out error occurs, however, the event is not triggered when the time out happens on my device.

StreamSubscription _onDestroy;
StreamSubscription<String> _onUrlChanged;
StreamSubscription<WebViewStateChanged> _onStateChanged;  StreamSubscription<WebViewHttpError> _onHttpError;

...
@override
void initState() {
    super.initState();

    ...
   _onHttpError = _flutterWebviewPlugin.onHttpError.listen((WebViewHttpError error) {
       // TODO: implement
       print(error.code);
   });
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions