jsakamoto / Toolbelt.Blazor.PWA.Updater

Provide "Update Now" UI and feature to your Blazor PWA that appears when the next version of one is available.
Mozilla Public License 2.0
134 stars 7 forks source link

Will this work with blazor Server + Client? #1

Open getthit opened 2 years ago

getthit commented 2 years ago

Will this work with blazor Server + Client?, We tried it on our site, but it didn't help.

jsakamoto commented 2 years ago

@getthit Thank you for asking!

Unfortunately, I designed this library for Blazor WebAssembly offline support scenario. Therefore, I'm not sure this library should work fine on Blazor Server apps. I'll consider the Blazor Server apps scenario.

And I'll appreciate it if you could provide a sample project representing your scenario.

jsakamoto commented 2 years ago

@getthit I verified that the PWAUpdaterService could work fine even on a Blazor Server app. (Please see also the commits in the blazor-server-support branch in this repository.) https://github.com/jsakamoto/Toolbelt.Blazor.PWA.Updater/commits/blazor-server-support

However, the <PWAUpdater> component did not work because it depends on the service available only on Blazor WebAssembly apps.

image

I'll try to make the PWAUpdater component to be available on both Blazor Server and Blazor WebAssembly.

jsakamoto commented 2 years ago

@getthit

I published the new version of the "Blazor PWA Updater," which has added support for the Blazor Server.

https://www.nuget.org/packages/Toolbelt.Blazor.PWA.Updater/2.0.0