Skip to content

Parity: send offline audiobook listening to the server (from Silo-Server/silo-apple#1192) #957

Closed

Description

@Quick104

What users should get

Listening to a downloaded audiobook offline should move the book's position on the server once the device is back online, so Continue Listening and resume on other devices pick up where the listener stopped.

Today Android keeps offline audiobook positions on the device only. RoomUserItemStateRepository.recordPositionOwned returns before syncing while ebookAuthorities is set, and SyncEngine dispatches only SET_EBOOK_PROGRESS, so other devices keep the position from the last online session.

How Apple does it

Silo-Server/silo-apple#1192:

  • Whole-book positions go through POST /api/v2/sync/progress. While the server can't be reached, each position is queued with the time it was sampled (updated_at); the server merges queued items newest-first (SetProgressIfNewer).
  • The queue is sent as soon as the server is reachable again, not only when the app comes to the foreground.
  • While queued positions are unsent, starting the book online resumes from the local position instead of the server's older one.
  • Code: AudioPlayerViewModel.saveBookPosition, and recordOfflineProgress, recordLocalProgress and flushOfflineProgress in DownloadManager.

Out of scope: books split into several files. The server keeps one download per book per device, so neither client can save a whole multi-part book yet.

Activity

  1. added
    bug
    impact: usability
    priority: P2
    triaged
    on Nov 15, 2026
  2. self-assigned this
    on Nov 15, 2026
  3. Quick104 commented on Nov 15, 2026

    @Quick104
    ContributorAuthor

    🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.

    A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.

    Planning to work on this, or have context to add? Reply here and mention @Quick104.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugimpact: usabilitypriority: P2triaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions