You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to implement a service that keeps on running when the Blazor WASM page is closed and the browser is still open.
Googles workbox has a solution that does exactly that with 'workbox-background-sync' for syncing purposes.
My use case would be to use when the app was working and closed offline, to send / sync data in the background as soon as the browser reconnects with internet. But it can be used for other small (none UI) processes as well of course.
Anyone ideas how to accomplish this?
Can WASM code operate when the page is closed, just like 'workbox-background-sync' does?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to implement a service that keeps on running when the Blazor WASM page is closed and the browser is still open.
Googles workbox has a solution that does exactly that with 'workbox-background-sync' for syncing purposes.
My use case would be to use when the app was working and closed offline, to send / sync data in the background as soon as the browser reconnects with internet. But it can be used for other small (none UI) processes as well of course.
Anyone ideas how to accomplish this?
Can WASM code operate when the page is closed, just like 'workbox-background-sync' does?
Beta Was this translation helpful? Give feedback.
All reactions