8000 Basic PWA support for Desktop (with offline support) by klementng · Pull Request #577 · adityachandelgit/BookLore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Basic PWA support for Desktop (with offline support) #577

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

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

klementng
Copy link

Add @angular/pwa package to allow for installation of an web app on mobile/desktop.

Resolves #204

@klementng klementng reopened this Jun 27, 2025
@klementng klementng changed the title PWA support Basic PWA support Jul 6, 2025
@domgregori
Copy link
domgregori commented Jul 6, 2025

With adding PWA support, would be a great feature to have offline support. Store any books currently reading on device and be able to read it offline. Then when back online, update progress.

I found https://www.flowoss.com which is able to do this, as an example

@klementng
Copy link
Author
klementng commented Jul 6, 2025

With adding PWA support, would be a great feature to have offline support. Store any books currently reading on device and be able to read it offline. Then when back online, update progress.

I found https://www.flowoss.com which is able to do this, as an example

I don't really know what I'm doing, but been trying out a few things here and there to make it work offline. So far, as a proof of concept I've just decided to cache everything via the service worker (it probably should be refined) and made some change to open a book in same tab (rather than a new window, to prevent PWA from opening a new tab in actual browser) and everything seem to be working, with the previously loaded book opening just fine.

No idea how to update progress when back online/offline (though once you back online and press the next page the progress is likely saved)

@klementng
Copy link
Author
klementng commented Jul 7, 2025

This pull request for PWA should be somewhat usable offline now. The image for this PR is available here for testing: ghcr.io/klementng/booklore-app:v0.0.0-develop-a88367b (you have to uninstall any prev pwa)

related #652

The back/refresh ui buttons does not exist on mobile PWA as minimal-ui option in the manifest is not supported by mobile browsers. Likely, it will require a separate UI button to return back to homepage for other readers (i only implemented the home button for the epub reader) or you can use the phone gesture for backward nav.

@klementng klementng changed the title Basic PWA support Basic PWA support (with offline support_ Jul 7, 2025
@klementng klementng changed the title Basic PWA support (with offline support_ Basic PWA support (with offline support) Jul 7, 2025
@klementng klementng changed the title Basic PWA support (with offline support) Basic PWA support for Desktop (with offline support) Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pwa support
2 participants
0