Working Offline
CADENSA Mobile works seamlessly offline. Track time without internet connection and sync when you're back online. This guide explains how offline mode works.
Understanding Offline Mode
What is Offline Mode?
Offline mode allows you to:
Start/stop/pause/resume timers
Create new time entries
Edit existing time entries
Delete time entries
Browse projects and tasks (cached)
View synced time entries
Without internet connection!
How It Works
- You Perform Action (e.g., start timer)
- Action Saved Locally (device storage)
- Action Queued for Sync (offline queue)
- When Online: Queue syncs to server
- Confirmation: Changes appear on all devices
Offline Queue
What is the Offline Queue?
The offline queue is a list of actions waiting to sync when online. Examples:
- Timer started
- Timer stopped
- Time entry created
- Time entry edited
- Time entry deleted
Viewing the Offline Queue
- Go to Settings Tab
- Tap "Sync" Section
- Tap "View Queue"
- Queue Screen Opens
Queue Display:
⏳ OFFLINE QUEUE (3 items)
1. Timer Stopped
Project: Website Redesign
Duration: 2:30:00
Time: 10:30 AM
2. ✏️ Entry Edited
Project: Mobile App
Duration: 1:45:00 → 2:00:00
Time: 11:00 AM
3. 🗑️ Entry Deleted
Project: Marketing
Duration: 0:30:00
Time: 11:15 AM
Each item shows:
- Action Type - Start/stop/edit/delete
- Timestamp - When action occurred
- Details - Project, duration, etc.
- Status - Pending, syncing, or failed
Network Status Indicator
Connection Status Bar
At the top of every screen, you'll see:
Online:
Connected
Offline:
Offline - 3 items pending sync
Syncing:
🔄 Syncing... (2 of 3 items)
What Each Status Means
Connected - App is online, changes sync immediately
- ** Offline** - No connection, changes are queued
- 🔄 Syncing - Currently syncing queued items
Sync Failed - Last sync attempt failed
Automatic Sync
When Does Auto-Sync Happen?
The app automatically syncs when:
- Connection Restored
- WiFi or cellular reconnects
- Auto-sync starts within 5 seconds
- App Opened
- Every time you open the app
- Checks for pending items and syncs
- Change Occurs (if online)
- Start/stop timer
- Create/edit/delete entry
- Immediate sync (no queue)
- Periodic Sync (if configured)
- Every 5/15 minutes (based on settings)
- Background sync (iOS/Android)
Sync Progress
During auto-sync, you'll see:
- Sync Icon appears in status bar
- Progress Message "Syncing 2 of 5 items..."
- Completion Toast "All items synced
"
Sync Completion
When sync finishes:
All items synced - Queue is empty
Some failed - Queue shows failed items
- ⏳ More items added - Sync continues
Manual Sync
When to Manually Sync
Use manual sync when:
- You want to sync immediately (not wait for auto-sync)
- Auto-sync failed and you want to retry
- Before logging out (to save offline queue)
- Before switching workspaces
How to Manually Sync
Method 1: Settings Tab
- Go to Settings > Sync
- Tap "Sync Now" button
- Wait for sync to complete
Method 2: Pull-to-Refresh (Time Entries Tab)
- Go to Time Entries tab
- Pull down from top
- Release to trigger sync
Method 3: Queue Screen
- Go to Settings > Sync > View Queue
- Tap "Sync All" button
Sync Result
After manual sync:
Success:
Sync Successful
All 3 items synced.
Partial Success:
Sync Partially Complete
2 of 3 items synced.
1 item failed (tap to retry).
Failed:
Sync Failed
Unable to sync. Check connection and retry.
Conflict Resolution
What is a Conflict?
A conflict occurs when:
- You edit entry offline on mobile
- Someone else edits same entry on web
- Both changes try to sync
Example:
Mobile (offline): Edit duration 1:00 → 2:00
Web (online): Edit duration 1:00 → 1:30
Conflict! Which duration is correct?
Conflict Detection
When sync detects conflict, you'll see:
- Conflict Badge on affected entry ( icon)
- Toast Notification "1 conflict requires attention"
- Conflict Screen (automatic or tap to open)
Resolving Conflicts
Conflict Resolution Screen:
Conflict Detected
Entry: Website Redesign - Development
Date: Jan 15, 2024
📱 Your Version (Mobile)
Duration: 2:00:00
Description: "Implemented login feature"
Edited: 11:30 AM (offline)
🌐 Server Version (Web)
Duration: 1:30:00
Description: "Worked on login"
Edited: 11:25 AM (online)
[Keep Mobile] [Keep Server] [Merge]
Resolution Options:
- Keep Mobile - Discard server changes, use your version
- Keep Server - Discard your changes, use server version
- Merge - Combine both (manual editing)
Auto-Resolution Rules
To avoid conflicts, app uses "last write wins" by default:
Newer timestamp wins - Most recent change is kept
Server preferred - If timestamps are same, server wins
You can change this in Settings > Sync > Conflict Resolution:
- Auto-resolve (last write wins) (default)
- Always ask - Show conflict screen every time
Orphan Cleanup
What are Orphans?
Orphans are queue items that:
- Reference deleted projects
- Have invalid data
- Can't be synced (corrupted)
Automatic Cleanup
The app automatically detects and cleans orphans:
- Validation - Check each queue item before sync
- Detection - Identify orphaned/invalid items
- Notification - Alert you about orphans
- Cleanup - Option to remove orphans
Orphan Notification
Invalid Queue Items
3 items cannot be synced (orphaned).
Possible reasons:
- Project was deleted
- Invalid data
- Corrupted entry
[Remove Orphans] [Keep for Review]
Options:
- Remove Orphans - Delete invalid items from queue
- Keep for Review - Leave in queue (review later)
Manual Orphan Cleanup
- Go to Settings > Sync > View Queue
- Tap "Validate Queue"
- See Validation Results:
Valid items (can sync)
- Invalid items (orphans)
- Tap "Remove Invalid Items"
Data Persistence
What Data is Saved Offline?
Always Available Offline:
Synced time entries (last 30 days)
Projects and tasks (cached)
User profile
Workspace info
Settings
Requires Internet:
Older entries (beyond 30 days)
New projects (not yet cached)
User avatars (not cached)
Reports and analytics
Cache Duration
Cached data remains available for:
- Time Entries - 30 days (configurable in settings)
- Projects - Until you sync or force-refresh
- User Data - Until logout
Storage Limits
Offline Queue:
- Maximum: 500 items
- If exceeded, oldest items are removed
- Warning at 400 items
Cached Entries:
- Default: Last 30 days
- Can configure: 7 days / 30 days / 90 days
- Settings > Data & Storage > Offline Cache Duration
Offline Capabilities & Limitations
What Works Offline
Fully Functional:
- Start/stop/pause/resume timer
- Create new time entries
- Edit existing entries (last 30 days)
- Delete entries
- Browse cached projects
- View cached time entries
- Change settings (local)
With Limitations:
- Switch workspace (if cached)
- Search projects (cached only)
- View project details (cached)
What Doesn't Work Offline
Requires Connection:
- Initial login (must login while online)
- Fetch new projects (not cached)
- Load older entries (beyond cache)
- Sync changes (queue until online)
- Push notifications
- Real-time WebSocket sync
Offline Notifications
Queue Reminders
If offline queue has items for extended period, you'll receive reminders:
After 24 Hours:
⏰ Offline Queue Reminder
You have 5 unsync items.
Connect to internet to sync.
After 7 Days:
Long-Standing Offline Items
10 items pending sync for over 7 days.
Please sync soon to avoid data loss.
Sync Recommendations
App recommends syncing when:
- Queue reaches 50+ items
- Oldest item is > 7 days old
- Before switching workspaces
- Before logging out
Offline Best Practices
1. Sync Before Going Offline
Before traveling or going offline:
- Open app while online
- Force sync (Settings > Sync Now)
- Ensure "All synced
" status
- Now you're safe to work offline
2. Enable WiFi-Only Sync (Mobile Data Saver)
If you have limited data:
- Settings > Sync > WiFi Only: ON
- Changes queue until WiFi available
- Connect to WiFi periodically to sync
3. Increase Cache Duration for Long Offline Periods
If you'll be offline for weeks:
- Settings > Data & Storage > Offline Cache Duration
- Select 90 days
- More entries available offline
4. Monitor Queue Size
Regularly check queue:
- Settings > Sync > View Queue
- If queue is large (50+ items), sync ASAP
- Prevents queue overflow
5. Resolve Conflicts Promptly
When conflicts appear:
- Tap conflict notification
- Review and resolve immediately
- Don't let conflicts accumulate
Troubleshooting Offline Issues
Queue Won't Sync
Symptoms:
- Items stuck in queue even when online
Solutions:
Check internet connection (Settings > WiFi/Cellular)
Verify server is reachable (ask admin)
Force sync (Settings > Sync Now)
Restart app
Check queue for orphans (Settings > View Queue > Validate)
Changes Disappeared After Sync
Symptoms:
- Made changes offline, synced, changes missing
Solutions:
Check Time Entries list (may be filtered)
Check if conflict occurred (may have chosen server version)
Check if entry was orphaned (project deleted)
Contact support with debug logs
Offline Mode Not Working
Symptoms:
- Can't start timer or create entries offline
Solutions:
Ensure you've logged in at least once while online
Check storage permissions (Settings > Apps > CADENSA > Storage)
Verify storage space (need at least 50 MB free)
Restart app
Clear cache and re-sync (Settings > Data & Storage > Clear Cache)
Queue Items Syncing in Wrong Order
Symptoms:
- Timers stopped before they started (order issue)
Solutions:
Wait for all items to sync (queue syncs sequentially)
Don't interrupt sync process
If stuck, clear queue and re-create entries manually
Frequently Asked Questions
How long can I work offline?
Indefinitely! As long as you have storage space and battery. The queue can hold 500 items. Sync when convenient.
Will offline changes sync to all devices?
Yes. When you sync, changes upload to server and download to all other devices.
What happens if my phone dies while offline?
Queue is saved to persistent storage. When you recharge and reopen app, queue is still there. Sync when online.
Can I delete items from offline queue?
Yes. Go to Settings > Sync > View Queue > Tap item > Delete. But this discards the change permanently.
What if I made a mistake in offline mode?
Edit the entry before syncing. Or sync, then edit the synced entry. Both work.
Does offline mode use battery?
Minimal. Offline mode is very battery-efficient (no network requests). Timer in background uses slightly more battery but still minimal.
Can multiple people work on same project offline?
Yes, but conflicts may occur. Each person's changes queue and sync when online. Conflicts are resolved based on settings.
Next Steps
Learn more about:
- Settings - Configure sync preferences
- Troubleshooting - Fix common issues
- FAQ - More questions and answers
Work Anywhere, Sync Everywhere! 📡