Skip to content

Mobile: Offline support and network monitoring#76

Merged
brianorwhatever merged 3 commits intomainfrom
mobile/offline-support
Feb 8, 2026
Merged

Mobile: Offline support and network monitoring#76
brianorwhatever merged 3 commits intomainfrom
mobile/offline-support

Conversation

@krusty-agent
Copy link
Copy Markdown
Collaborator

Overview

Implements native offline support for the mobile app using Capacitor's Network plugin.

Changes

  • @capacitor/network plugin for native network status monitoring
  • Network service (src/lib/network.ts) that provides:
    • Unified API for network status across web and native platforms
    • Web fallback using navigator.onLine
    • Native network monitoring via @capacitor/network
  • Updated useOffline hook to use the new network service instead of browser-only events
  • Initialization of network monitoring in main.tsx

Testing

  • ✅ Build passes (npm run build)
  • Uses existing OfflineIndicator component for UI feedback
  • Auto-triggers sync when connection is restored

Notes

@brianorwhatever brianorwhatever merged commit 74e2c41 into main Feb 8, 2026
2 of 3 checks passed
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.

2 participants