How a Next.js and Capacitor meetup app was made to work offline
The developer behind Moim, a meetup app that issues door QR codes, tested it in airplane mode and found that most features failed. Because Next.js navigates with data requests rather than full page loads, the app now pre-saves key screens and its static assets while online, and turns offline link clicks into page loads served from cache. An Android WebView quirk, where service worker registrations vanish after a process restart, was handled by having the native shell serve a bootstrap page that re-registers the worker. Chat messages are cached locally for only the last 50 messages per user and cleared on sign-out, while RSVPs and other writes are queued in an outbox that keeps only the latest intent. Actions like paid RSVPs remain online-only by design.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in