Daddoon / BlazorMobile

Create full C# driven hybrid-apps for iOS, Android, UWP & Desktop with Blazor!
MIT License
413 stars 55 forks source link

Using server hosted BlazorAppPackage #142

Closed soend closed 4 years ago

soend commented 5 years ago

Hello, this is create project and i really like the idea but i was wondering if it would be possible to make the webview to show blazor app package downloaded from a server. That way if i make changes in the blazor app i would not have to push out new apk every time.

Daddoon commented 5 years ago

Well this is a very interesting idea. I already though about this scenario, but never added it to the issues list.

In my opinion, you should be able to offer this behavior by modifying your code logic in the WebApplicationFactory.RegisterAppStreamResolver given delegate.

If my memory is good, the current delegate implementation is in the AppPackage project, but feel free to register it from somewhere more convenient for you.

The idea to achieve your goal would be:

The only thing you cannot do with this scenario, is if you need to update the Xamarin.Forms abstraction layer, like adding new interop services and behavior to native.

But if you only updated the Web app (Blazor), there will be no problem at all.

Daddoon commented 5 years ago

Btw, i think it would be nice to have a sample / little guide about this type of feature in the README.

I keep this issue open for tracking, as i will try to add some example guide for this request.

soend commented 5 years ago

Thanks, you described exactly the idea what i had. Would be nice to get some pointers where to start when one would like to implement this.

Daddoon commented 5 years ago

If you are patient, i will try to post a guide during this week.

Daddoon commented 5 years ago

Sorry, i had a lot of works.

I still have to write documentation about this, and i think i will take this into the form of a tutorial, here or on my future website.

Stay tuned!

Daddoon commented 4 years ago

Working on this functionnality, at least to make this the more straightforward to use.

Daddoon commented 4 years ago

This will take a little more time to me, so i will add theses "helpers" for a next release ! Sorry !

Daddoon commented 4 years ago

Done, will update the doc for this need when releasing the update today

Daddoon commented 4 years ago

@soend The functionnality you asked is now available on the last version of BlazorMobile. See the documentation here for more info:

https://github.com/Daddoon/BlazorMobile/#loading-several-or-external-blazormobile-apps

soend commented 4 years ago

@soend The functionnality you asked is now available on the last version of BlazorMobile. See the documentation here for more info:

https://github.com/Daddoon/BlazorMobile/#loading-several-or-external-blazormobile-apps

Crazy times and been busy with other projects but now im back with this. This feature looks really good, i will def try it out in my project! :)

Daddoon commented 4 years ago

Thanks for your feedback :D