Offline Mode
Work without internet connection using service worker cache
2 min read
Offline Mode
SmartWMS supports limited offline operation through its service worker cache. This is especially useful for scanners in areas with poor WiFi coverage.
What Works Offline
| Feature | Offline Support |
|---|
| Recently viewed pages | ✅ Served from cache |
|---|---|
| Static assets (CSS, JS) | ✅ Always cached |
| Previously loaded product lists | ✅ Available |
| Submitting new data | ❌ Requires connection |
| Real-time notifications | ❌ Requires connection |
Offline Indicator
When connectivity is lost, a banner appears at the top of the app:
"You are offline — some features may not be available"
The banner disappears automatically when connection is restored.
Service Worker Updates
When a new version of SmartWMS is deployed:
- The service worker detects the update
- A notification appears: "Update available — click to refresh"
- Click the notification to apply the update
Improving Offline Coverage
For better offline coverage on warehouse devices:
- Use the app regularly so pages are cached
- Ensure WiFi access points cover all warehouse areas
- Consider dedicated WiFi APs in receiving docks and picking zones
Technical Notes
- Cache uses Workbox (Stale-While-Revalidate strategy)
- Cache expires after 24 hours for dynamic content
- Static assets are cached indefinitely until a new deployment