-
Notifications
You must be signed in to change notification settings - Fork 55
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
Able to install ServiceWorker even when system is offline. #2608
Comments
Thanks for the feedback! We've added this as a scenario on our backlog! |
@DexterWoo - Can you expand on where the PWA files are located if the devices is offline? If the files are all local you could look at using SetVirtualHostNameToFolderMapping to make them available to the WV2. |
we are thinking about everything being served by the service-worker instead, SetVirtualHostNameToFolderMapping is not quite a good option for us cause it will diverge into 2 split flows. |
What would the two flows be? You could use SetVirtualHostNameToFolderMapping in the 1st launch case just like you were expecting to use WebResourceRequested. |
we would need to detect if the service-worker was installed success fully and diverge into 2 flows. if(!swinstalled) |
@DexterWoo - We've added an API Let me know if this doesn't meet your need and why, otherwise I'll close this in ~7 days. |
we recently are working on an app.
it's composed of webview2 + a PWA app.
we would like to preload the PWA with WebResourceRequested event.
however, it will not work when the system is offline.
it would be nice to be able to preload the PWA even when the system is offline.
Ideally, we would like to have something like this.
App 1st launch, in WebResourceRequested we'll provide the first version of the PWA app.
the following version updates will be handled by ServiceWorker's logic.
AB#40545851
The text was updated successfully, but these errors were encountered: