Skip to main content

Offline Mode

The Bemba application supports an offline mode allowing you to continue working without an internet connection, then synchronize data once the connection is restored.

Overview

┌─────────────────────────────────────────────────────────────────────────┐
│ OFFLINE MODE │
├─────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ ONLINE │ --> │ OFFLINE │ --> │SYNCHRONIZATION│ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ Real-time Actions in Upload │
│ data queue modifications │
│ │
└─────────────────────────────────────────────────────────────────────────┘

How It Works

Connection Detection

The application automatically detects:

StateDescriptionIndicator
OnlineActive server connectionGreen
OfflineNo connectionRed
Slow connection2G or unstable networkOrange

An indicator displays in the status bar:

┌─────────────────────────────────────────┐
│ 🟢 Online │ 🔴 Offline │
│ or │ Offline mode │
│ 🟠 Slow │ 5 modifications │
│ connection │ pending │
└─────────────────────────────────────────┘

Caching

The following data is automatically cached:

DataDurationRefresh
Lists (households, beneficiaries)24hAutomatic
Viewed details1hOn demand
Geographic data7 daysRare
Configuration24hAutomatic

Queue

Offline modifications are stored locally:

  1. Storage: IndexedDB in browser
  2. Order: Modifications are timestamped
  3. Priority: Processed in order of recording
  4. Persistence: Kept even if browser is closed

Usage

Switching to Offline Mode

Offline mode activates automatically when:

  1. Internet connection is lost
  2. Server is unreachable
  3. Network is too slow

You can also force offline mode:

  1. Click the connection indicator
  2. Select Work offline

Available Actions Offline

ActionAvailableNotes
View listsCached data
View detailsIf previously viewed
Create a householdQueued
Edit a householdQueued
Create a complaintQueued
Add commentQueued
Advanced searchRequires server
Excel exportRequires server
Document uploadRequires server

Visual Indicators

In offline mode, you'll see:

  • Red badge: Offline indicator
  • Counter: Number of pending modifications
  • Clock icon: On items awaiting sync
  • Banner: Warning message at page top

Synchronization

Automatic Synchronization

When connection returns:

  1. Application detects reconnection
  2. Synchronization starts automatically
  3. Modifications are sent one by one
  4. Conflicts are flagged

Manual Synchronization

To force synchronization:

  1. Click the connection indicator
  2. Select Sync now
  3. Follow the progress

Progress

┌─────────────────────────────────────────────────────────────────┐
│ SYNCHRONIZATION IN PROGRESS │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ████████████████████░░░░░░░░░░ 60% │
│ │
│ ✓ Household MEN-2026-001 synchronized │
│ ✓ Household MEN-2026-002 synchronized │
│ ⟳ Complaint PLT-2026-003 in progress... │
│ ○ Comment pending │
│ ○ Household MEN-2026-004 pending │
│ │
│ 3/5 items synchronized │
│ │
└─────────────────────────────────────────────────────────────────┘

Conflict Management

A conflict occurs when:

  • The same data was modified online and offline
  • Data was deleted online
┌─────────────────────────────────────────────────────────────────┐
│ CONFLICT DETECTED │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Household MEN-2026-001 was modified on the server while you │
│ were offline. │
│ │
│ Your modifications: Server: │
│ - Name: Diallo Mamadou - Name: Diallo M. │
│ - Tel: +245955123456 - Tel: +245955999999 │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Keep my changes │ │ Use server data │ │
│ └──────────────────┘ └──────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────┘

Resolution options:

OptionDescription
Keep my changesYour changes overwrite the server
Use server dataServer data is kept
MergeChoose field by field (if available)

Local Storage

IndexedDB

Data is stored in IndexedDB:

StoreContent
sync_queuePending modifications
cached_dataViewed data
sync_metaSync metadata

Capacity

BrowserTypical Limit
ChromeUp to 80% of disk
FirefoxUp to 2 GB
Safari50-100 MB
EdgeUp to 80% of disk

Cleanup

To free up space:

  1. Open application Settings
  2. Section Local storage
  3. Click Clear cache
Attention

Clearing the cache deletes unsynchronized data! Sync first.

Best Practices

Before Going Offline

  1. Synchronize: Make sure you have the latest data
  2. Browse: Open the forms you'll need
  3. Verify: Check that no modifications are pending

During Offline Mode

  1. Limit modifications: Avoid large volumes
  2. Note potential conflicts: Avoid editing shared data
  3. Check storage: Monitor available space

When Back Online

  1. Sync immediately: Don't delay
  2. Check conflicts: Resolve them quickly
  3. Confirm: Verify everything is synchronized

Limitations

Not Available Offline

  • Global search
  • Report export
  • File upload
  • Payment cycle creation
  • Document validation
  • Real-time notifications

Technical Limits

  • Max size: ~50 MB of cached data
  • Max duration: 7 days without synchronization
  • Modifications: 100 items max in queue

Troubleshooting

Synchronization Fails

  1. Check your internet connection
  2. Try refreshing the page
  3. Clear cache and retry
  4. Contact support if problem persists

Missing Data in Offline Mode

  1. Data must have been viewed at least once
  2. Open needed forms before going offline
  3. Use "Download for offline" function if available

Browser Shows "Insufficient Storage"

  1. Clear cache from other sites
  2. Delete old application data
  3. Use a browser with more capacity

Compatibility

BrowserSupport
Chrome 90+✓ Full
Firefox 85+✓ Full
Safari 15+✓ Limited
Edge 90+✓ Full
Mobile Chrome✓ Full
Mobile Safari✓ Limited
Progressive Web App

The application can be installed as a PWA for a better offline experience. See the PWA installation guide.