webview_cef icon indicating copy to clipboard operation
webview_cef copied to clipboard

Bug in release mode

Open reisclaudio opened this issue 2 years ago • 8 comments

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?

reisclaudio avatar Jun 06 '23 13:06 reisclaudio

Hi, is this resolved? @reisclaudio

waqadArshad avatar Jun 19 '23 19:06 waqadArshad

Hi @waqadArshad! Not yet, I tried several ways but in release mode it doesn't work.

reisclaudio avatar Jun 19 '23 19:06 reisclaudio

@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

waqadArshad avatar Jun 19 '23 21:06 waqadArshad

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

hlwhl avatar Jun 22 '23 03:06 hlwhl

@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

hlwhl avatar Jun 22 '23 03:06 hlwhl

OK. The temporary solution doesn't work for me. I'll wait for updates, thanks for the answers

reisclaudio avatar Jun 22 '23 12:06 reisclaudio

@reisclaudio My workaround is to delay execution of _controller.loadUrl();

Wait for the WebView to be initialized

kuangruan avatar Jul 13 '23 04:07 kuangruan

Any updates or workaround? @reisclaudio @kuangruan

bahricanyesil avatar Dec 11 '23 12:12 bahricanyesil