webview_cef
webview_cef copied to clipboard
Bug in release mode
I'm trying to pass a url by parameter and passing that parameter through initstate. In debug mode it works. however, when compiling the program, it calls the url of the parameter and then redirects to the default url (in this case, flutter.dev), would there be a solution for this?
Hi, is this resolved? @reisclaudio
Hi @waqadArshad! Not yet, I tried several ways but in release mode it doesn't work.
@reisclaudio Sorry to hear that. Given that it is actively in development, hopefully, this would be resolved soon.
@hlwhl @BullsEye34 Please take a look at this whenever you can. Thanks
It's a timing issue. We need add an init done callback when OnContextInitialized called. https://github.com/hlwhl/webview_cef/blob/49ce96cadc22e99ffeef9244d344cb6039f75df6/common/webview_app.cc#L83-L98
@reisclaudio @waqadArshad You may change the default URL here as a temp solution. https://github.com/hlwhl/webview_cef/blob/49ce96cadc22e99ffeef9244d344cb6039f75df6/common/webview_app.cc#L90
OK. The temporary solution doesn't work for me. I'll wait for updates, thanks for the answers
@reisclaudio My workaround is to delay execution of _controller.loadUrl();
Wait for the WebView to be initialized
Any updates or workaround? @reisclaudio @kuangruan