-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[windows] Go Native WebView2Loader - Feedback #2004
Comments
Just pushed a small fix to master. |
Some stats:
|
Nice Job! My team have a web app used WebRTC technology only on a local network without SSL. It's wonderful used wails let it like a desktop app. But we need enabled 'unsafely-treat-insecure-origin-as-secure' on webview2 and setting server's IP address automatic. Same as #1507 . |
So I just tried it out and it's a HUGE improvement. I am now able to compile my wails app with sqlite and not have the compilation fail with the same kind of issue I reported here: golang/go#57455 (comment) |
windows11 专业版 22621.1413 编译的exe无法运行 |
Just to make sure, did you test the old WebView2Loader by using |
@onedaycodes could you please elaborate what your issue is? This dialog is expected and normal behaviour if the WebView2 is not installed on the target machine where the application is executed. |
|
That's expected behaviour, |
"Whether using the old one or not, the content cannot be displayed." |
Could you please open a new specific issue with a reproduction guide? That would be awesome 🙏 . This issue is only meant for feedbacks/issues with the new webview2loader, but it seems like in your case something else is the problem. |
The new WebView2Loader is in a stable state and feedback was overall good. So I'm going to close this issue. If someone encounters a problem with the new loader, please open a new issue with a detailed report. |
hello i have problem when use the obfuscated flags , i have app can be write a file with data and can read it , the permission of file is set , but when use production mode with obfuscated when try to write file its working i see the file and data is done but the application not render the file , i have a card for display information and when card is created we have a function for read the file in dev mode is works but in prod is not displaying
WailsVersion | v2.8.0 System┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ Dependencies┌────────────────────────────────────────────────────────────────┐ DiagnosisOptional package(s) installation details:
SUCCESS Your system is ready for Wails development!
} // Account represents the account information // ReadAccountsFromFile reads accounts from a .dat file in the AccountInfo folder and returns them as a slice
} thanks all for your help |
windows10, WAR | WebView failed to set AllowExternalDrag to false
wails build -platform=windows/amd64 -debug -s -m -o=test-amd64.exe platform: macOS Monterey, version 12.7.4 |
Same here. Is there any update for this? |
The WebView2Loader is an essential part of the WebView2 runtime while running Wails on Windows. The loader is distributed by Microsoft as a DLL and must be loaded in order to start and use the WebView2 Runtime. It provides helper functions to determine the current version installed or to use a fixed runtime.
In order to have a Go (Single-Binary) experience the WebView2Loader.dll is embedded in the final application binary and
loaded from memory when needed.
There are several drawbacks with this approach:
To overcome this problem currently an awesome project written by @jchv is used go-winloader, which makes it possible to load the library from memory.
Some drawbacks of the loader are:
To overcome those drawbacks the Wails-Team started to implement a Go native WebView2Loader by porting the OpenWebView2Loader (also written by @jchv 😀) to Go. This new loader allows us to directly interact with the WebView2 runtime straight from Go without having to load another DLL into memory.
The new loader can be activated by adding
exp_gowebview2loader
to your build tags:wails build --tags exp_gowebview2loader
.The loader is currently experimental, nevertheless we feel it's in a state where people are invited to try it out and
actively use it.
Please let us know your feedback or problems when using the new loader in this issue. Please also include the output of
wails doctor
.Tested
Status: Stable
Merged with #1974
Released with v2.3.0
The text was updated successfully, but these errors were encountered: