> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arya.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Offline tasks

> Complete tasks without connection, auto-sync on reconnect.

The mobile app supports **offline mode** for tasks and expense reports: work without internet and Arya auto-syncs when connection returns.

## What works offline

<CardGroup cols={2}>
  <Card title="Read tasks">See your locally cached tasks.</Card>
  <Card title="Complete tasks">Mark as done.</Card>
  <Card title="Clock-ins">In/out saved locally.</Card>
  <Card title="Expense reports">Create expense with receipt photo.</Card>
  <Card title="Comments">Add comments to recently-viewed records.</Card>
</CardGroup>

## What requires connection

* Creating new tasks or records
* AryaChat
* Bulletin board (reading new posts)
* Call recording
* Advanced search
* Dashboards and reports

## How it works

<Steps>
  <Step title="Automatic cache">
    App auto-downloads tasks assigned to you, upcoming deadlines, frequently-visited records. No manual action.
  </Step>

  <Step title="Work without network">
    "Offline" indicator at top of app. Changes saved locally in a queue.
  </Step>

  <Step title="Sync on reconnect">
    As soon as you're online (wifi or 4G/5G), changes are sent to server chronologically. "Syncing" indicator during upload.
  </Step>

  <Step title="Confirmation">
    On completion, green icon "All synced".
  </Step>
</Steps>

## Conflict handling

If an offline session collides with another user's changes:

<AccordionGroup>
  <Accordion title="Auto-merge">
    If changes don't conflict (e.g. you completed task, other added comment) → automatic merge.
  </Accordion>

  <Accordion title="Conflict resolution">
    Both changed the same field → Arya asks which version to keep, showing both options.
  </Accordion>

  <Accordion title="Timestamp win">
    Default: most recent change wins, but you can change policy to "First write wins" in settings.
  </Accordion>
</AccordionGroup>

## Sync status visibility

<Steps>
  <Step title="Header indicator">Numeric badge if there are queued changes.</Step>
  <Step title="Queue detail">Tap badge → list of pending changes with status.</Step>
  <Step title="Force sync">"Sync now" button if it didn't start automatically.</Step>
</Steps>

## Limits

<Warning>
  * Offline cache: 200 tasks and 50 recent records
  * Offline change queue: max 100 pending actions
  * Cache timeout: records not viewed for >7 days are removed from cache

  If you exceed limits, Arya warns and suggests connecting.
</Warning>

## Privacy

<Note>
  Locally cached data is OS-level encrypted (iOS Keychain, Android Keystore). If the device is lost, Remote Wipe (web) also clears local cache at first connection attempt.
</Note>
