fryette / webview_cookie_manager

MIT License
48 stars 52 forks source link

MissingPluginException #14

Closed stjfk closed 4 years ago

stjfk commented 4 years ago

First of all, thanks for this plugin.

When I want to use this plugin, I get an error like this

"Exception has occurred. MissingPluginException (MissingPluginException(No implementation found for method getCookies on channel webview_cookie_manager))"

https://imgur.com/a/0BtaIIH

           WebView(
              onWebViewCreated: (WebViewController webViewController) {
                _controller = webViewController;
              },
              initialUrl: "https://youtube.com",
              javascriptMode: JavascriptMode.unrestricted,
              onPageFinished: (opf) async {
                debugPrint("onPageFinished: " + opf.toString());

                final cookieManager = WebviewCookieManager();

                final gotCookies = await cookieManager.getCookies('https://youtube.com');
                for (var item in gotCookies) {
                  print(item);
                }
              },
            )

flutter v1.20.1 & android

fryette commented 4 years ago

@stjfk is an example working for you?

fryette commented 4 years ago

I have flutter 1.20.2(beta channel) + Android Simulator and everything works fine. Please check an example folder.

stjfk commented 4 years ago

I updated flutter (1.20.2) and the problem is solved thanks

fryette commented 4 years ago

Good to know!