Skip to content
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

using web view to load a web page off a server #94

Open
gedw99 opened this issue Dec 19, 2024 · 2 comments
Open

using web view to load a web page off a server #94

gedw99 opened this issue Dec 19, 2024 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Dec 19, 2024

Hey @inkeliz

I am making a basic demo of the web view and was wondering if it is capable of simply loading a web page off a https server ? I am trying to use it with a basic htmx project to see how it goes with deep linking, etc ( yes I know deep linking does not work at the moment ).

happy to add this as a demo if you want it.

@inkeliz
Copy link
Contributor

inkeliz commented Dec 20, 2024

The webview is capable to access any remote HTTPS website (except on programs compiled for WASM/JS).

In fact:
Android requires HTTPS;
Windows requires remote server; You can enable support for localhost using some commands (see https://github.com/inkeliz/gowebview/blob/4188e0e21bf5f649d0ff89b5c463596452dc53a7/internal/network/network_windows.go#L47-L72 Note: that can flag your binary app as a malware!).

It's also possible to set CustomCertificates for HTTPS, in case you use self-signed. That only works for Windows/Android, I don't find any workaround for macOS/iOS.

My use-case is to display some external pages (like social media and such). In the future it's possible that DRM contents (Netflix, for instance) don't work anymore.

@gedw99
Copy link
Author

gedw99 commented Dec 20, 2024

thanks @inkeliz

my use case is the same as yours. Just not social media. For me it is for Scientist showing their web page. The web page displays HTML and has some golang based wasm that is displaying things that HTML cant display ( complex charts ).

Would you be open to making adding simple demo that just loads a basic index.html ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants