Understanding and using Shared mode: indicators, lock, save, and clean exit.
In shared mode βοΈ, the cave.db file is hosted on βοΈ Google Drive or βοΈ Dropbox. Multiple devices can access it, but only one can write at a time (exclusive lock).
Important: Cavea always works on a local copy of
cave.db. All your changes (adding, consuming, movingβ¦) are saved locally first. They are only uploaded to the shared cloud storage when you save β either manually or on exit. Without an explicit save, your changes remain on your device only and may be lost.
A permanent icon in the navigation shows the active mode and lock status.
| Icon | Meaning |
|---|---|
| π» PC (grey) | Local mode β data on this device only |
| βοΈ Cloud (blue) | Shared mode β data on Google Drive or Dropbox |
| Icon | Meaning |
|---|---|
| π Open padlock | Write mode (green icon) β you hold the lock |
| π Closed padlock | Read-only mode (amber icon) β another device holds the lock |
| β» Spinning icon | Save in progress (blue icon) |
| β οΈ Error icon | Save error (red icon) |
On PC (Windows / Linux): a πΎ Save button appears in the navigation panel. It triggers an immediate upload to the cloud without closing the app.
On Android: two icons appear in the navigation bar:
A π Take over button is shown. It lets you acquire the write lock if the other device has released it. A confirmation dialog appears before the lock is acquired.
cave.db from the cloudIf another device already holds the lock: Cavea opens in read-only mode π. A dialog offers to stay in read-only mode or quit.
On PC (Windows / Linux):
cave.db to the cloud and releases the lockOn Android:
β οΈ Do not use the Home button or task switcher to exit. The lock will not be released (other devices remain blocked in read-only) and any changes since the last save will not be uploaded to the shared cellar. On the next startup, if the lock still belongs to you, a dialog will ask you to choose between uploading your local changes to the shared cellar or reverting to the shared version.
On the next startup, if the lock belongs to the same device:
| Feature | Read-only mode π |
|---|---|
| π· Browse stock | β |
| Filter / search | β |
| βΉοΈ Bottle details (read) | β |
| π¦ Browse by location | β |
| History π | β |
| βοΈ CSV export | β |
| βοΈ Settings | β |
| β Add bottles | β |
| πΈ Consume / βοΈ Move / βοΈ Edit | β |
| βοΈ CSV import | β |
In βοΈ Settings > Sync mode, tap Change provider. This clears the stored tokens and relaunches the setup wizard.