-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Search for an active next-pwa
fork
#482
Comments
I have commented a thread in the nextjs github discussions about the idea of including PWA support in the framework like they have done with next-seo by adding the Metadata API: vercel/next.js#42676 |
@angelhodar That's excellent! I think first-class Next.js support would be great. Thanks for linking. Your thoughts about iOS 16.4 Web Push are exactly what catalyzed me to look for an active fork. |
next-pwa was last updated in August 2022. There is also an issue which mentions that next-pwa is abandoned (?): shadowwalker/next-pwa#482 But the main reason for me uninstalling it is that it adds a lot of preconfigured stuff which is not necessary for us. It even lead to a bug since pages were cached without our knowledge. So I will go with a different PWA approach. This different approach should do the following: - make it more transparent what the service worker is doing - gives us more control to configure the service worker and thus making it easier
next-pwa was last updated in August 2022. There is also an issue which mentions that next-pwa is abandoned (?): shadowwalker/next-pwa#482 But the main reason for me uninstalling it is that it adds a lot of preconfigured stuff which is not necessary for us. It even lead to a bug since pages were cached without our knowledge. So I will go with a different PWA approach. This different approach should do the following: - make it more transparent what the service worker is doing - gives us more control to configure the service worker and thus making it easier
next-pwa was last updated in August 2022. There is also an issue which mentions that next-pwa is abandoned (?): shadowwalker/next-pwa#482 But the main reason for me uninstalling it is that it adds a lot of preconfigured stuff which is not necessary for us. It even lead to a bug since pages were cached without our knowledge. So I will go with a different PWA approach. This different approach should do the following: - make it more transparent what the service worker is doing - gives us more control to configure the service worker and thus making it easier
* npm uninstall next-pwa next-pwa was last updated in August 2022. There is also an issue which mentions that next-pwa is abandoned (?): shadowwalker/next-pwa#482 But the main reason for me uninstalling it is that it adds a lot of preconfigured stuff which is not necessary for us. It even lead to a bug since pages were cached without our knowledge. So I will go with a different PWA approach. This different approach should do the following: - make it more transparent what the service worker is doing - gives us more control to configure the service worker and thus making it easier * Use workbox-webpack-plugin Every other plugin (`next-offline`, `next-workbox-webpack-plugin`, `next-with-workbox`, ...) added unnecessary configuration which felt contrary to how PWAs should be built. (PWAs should progressivly enhance the website in small steps, see https://web.dev/learn/pwa/getting-started/#focus-on-a-feature) These default configurations even lead to worse UX since they made invalid assumptions about stacker.news: We _do not_ want to cache our start url and we _do not_ want to cache anything unless explicitly told to. Almost every page on SN should be fresh for the best UX. To achieve this, by default, the service worker falls back to the network (as if the service worker wasn't there). Therefore, this should be the simplest configuration with a valid precache and cache busting support. In the future, we can try to use prefetching to improve performance of navigation requests. * Add support for Web Share Target API See https://developer.chrome.com/articles/web-share-target/ * Use Web Push API for push notifications I followed this (very good!) guide: https://web.dev/notifications/ * Refactor code related to Web Push * Send push notification to users on events * Merge notifications * Send notification to author of every parent recursively * Remove unused userId param in savePushSubscription As it should be, the user id is retrieved from the authenticated user in the backend. * Resubscribe user if push subscription changed * Update old subscription if oldEndpoint was given * Allow users to unsubscribe * Use LTREE operator instead of recursive query * Always show checkbox for push notifications * Justify checkbox to end * Update title of first push notification * Fix warning from uncontrolled to controlled * Add comment about Notification.requestPermission * Fix timestamp * Catch error on push subscription toggle * Wrap function bodies in try/catch * Use Promise.allSettled * Filter subscriptions by user notification settings * Fix user notification filter * Use skipWaiting --------- Co-authored-by: ekzyis <[email protected]>
Good one - https://github.com/serwist/serwist |
PWA now seems to be supported by Next.js directly: https://nextjs.org/docs/app/building-your-application/configuring/progressive-web-apps |
You can add a service worker via a manifest to any page, yes. What next-pwa does is a lot more than what is described in the nextjs docs. |
Oh sorry 😬 I just wanted to let people here know about that, as it's been announced in another discussion about first party support for PWA. I didn't test anything. |
Honestly I don't think there is anything new about that (besides the docs), if I am not overseeing something. We have a manifest served on an API route (pages router) since forever. And as they write:
|
Since this library is abandoned but extremely useful, I am on the hunt for an active fork. I'm not sure if there's a single community-recognized fork here, but I think it would be useful to come together and aggregate on a single one.
Popular active forks I've discovered:
If you are aware of others (or have a preference of the ones listed above), please let me know.
The text was updated successfully, but these errors were encountered: