-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
For PWA, implement the Native File System API #94
Comments
I've now implemented a working version of the Native File System API (for Edge Chromium and Chrome) in the PWA version at https://kiwix.github.io/kiwix-js-windows . To test,, it may be necessary to load, exit and reload the app a couple of times until the new code is cached by the Service Worker. Or else, open Dev Tools -> Application -> unregister service worker, force reload (Ctrl-Shift-R). The code is only properly implemented for the The kiwix.github.io address is implemented as a Chrome Origin Trial for the Native FS API, which is also working for Edge (Chromium), so the user does not need to set any flags. The experience is as follows:
|
Advantages of this API:
On the downside:
Still, the experience is pretty acceptable IMHO, and I'll provide feedback to the Origin Trial to suggest they allow an installed PWA to serialize permissions along with the file or directory handle. |
This is implemented. |
Chrome and Edge Chromium have both implemented the Native File System API, which allows users to pick a file and returns a file handle which can be serialized and stored in IndexedDB for future use. This is already implemented and available in Edge under a flag (edge://flags), and is an Origin trial in Chrome.
See https://web.dev/native-file-system/
It would be a game changer, as the PWA would then have feature parity with the UWP app.
The text was updated successfully, but these errors were encountered: