flutter webview net::ERR_NAME_NOT_RESOLVED

2,812

This error usually occurs when you are testing with the emulator or when your internet connection is poor. If you are running your app on an emulator and you encounter this problem, trying running the app on a real device. If the error persists, add internet permission to your android manifest.

Share:
2,812
Husamuldeen
Author by

Husamuldeen

Updated on December 20, 2022

Comments

  • Husamuldeen
    Husamuldeen over 1 year

    flutter webview net::ERR_NAME_NOT_RESOLVED please note that the problem shown with the release not the debug

     WebView(
      initialUrl: widget.url,
      onPageFinished: (data){
        updateLoadingState(false);
      },
      javascriptMode: JavascriptMode.unrestricted,
      onWebViewCreated: (webViewController){
        _webViewController = webViewController;
      },
    )
    
    • Adelina
      Adelina almost 4 years
      sounds like a server issue or a DNS issue, does url work in browser with mobile data?
    • Husamuldeen
      Husamuldeen almost 4 years
      yes it's work on chrome