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

HybridWebView not only access local SPA's but on the internet too! #16

Open
danilobreda opened this issue Apr 18, 2023 · 4 comments
Open

Comments

@danilobreda
Copy link

danilobreda commented Apr 18, 2023

From: dotnet/maui#12009 (reply in thread)

My use case is a SPA application in Vue (Static SPA) that we made hybrid for desktop(browser) and mobile.
This application is deployed on a simple public web server http://example.com/spa/index.html

We saw that it is very interesting because the end user can have the update automatically without having to update the app (just refreshing the webview).

It's similar to your React example but it's hosted on the web.

The need to have the interaction between C# and Javascript is necessary for "Native Menu" calling the spa menu when clicked, downloading files and other nice functions.

We already have an example of this in production with an app made in reactnative, but we want to migrate to MAUI and add more functionality to the app

I made a version that works with a fork from your project and some modifications. So its possible :)

@Eilon
Copy link
Owner

Eilon commented May 4, 2023

That looks very cool! I'll keep this issue open in case it's something to consider for this project.

@zhang178007
Copy link

When developing an app, it often requires interaction between the backend server, web server, and app client, which can accelerate the development process. Therefore, I believe it is necessary to load the web on the network. This way, in the future, certain content can be updated without app updates when certain requirements change

@ryanshirley-flipdish
Copy link

Being able to specify a URL instead of local files would be a big bonus for me. This would not only allow for deploying UI changes without publishing a new app build but for a developer experience you could then get hot-reload for the UI when debugging on device.

I know I that I will get hot-reload in the browser but I won't be able to call into MAUI this way.

@memogarrido
Copy link

Maybe something like this:

main...memogarrido:MauiHybridWebView:poc/remote-url

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

5 participants