livestorejs/livestore

Better support for SharedWorker on Android (Chrome limitation)

Open

#321 opened on May 27, 2025

View on GitHub
 (8 comments) (20 reactions) (0 assignees)TypeScript (128 forks)github user discovery
adapter:webhelp wanted

Repository metrics

Stars
 (3,599 stars)
PR merge metrics
 (PR metrics pending)

Description

There is a long-standing limitation in Chrome for Android that prevents proper support for SharedWorker (see Chromium issue 40290702).

As a workaround, we should consider downgrading the web adapter to only support one tab at a time on affected platforms (e.g., Android Chrome). This will ensure more predictable behavior for users, even if it means losing multi-tab support in these environments.

References:

Proposed solution:

  • Detect affected platforms (e.g., Chrome on Android)
  • Fallback to a single-tab-only mode for the web adapter

This will help avoid subtle bugs and improve reliability for users on Android.

Contributor guide