Boardgrid
Menu
Get the app

Sync and devices

The single-writer rule in full: how a device becomes the writer, how takeover works, what happens to conflicting changes, the size limit, and what never syncs.

Boardgrid keeps one book per facility and syncs it between your own devices through your iCloud account. This page describes the rules exactly.

The model

  • The whole book is one item in iCloud's key-value storage for your Apple Account.
  • Each device also keeps a full local copy, so the app works with no connection.
  • At any moment, exactly one install is the book's writer. Every other install reads.

There is no server of ours in this picture, and no account other than your Apple Account.

Why one writer

Two devices can each edit their own copy before either hears from the other. Each sees a room free and each sells it. With simple last-write-wins sync, the later book replaces the earlier one and a booking or a receipt goes with it.

Boardgrid does not try to merge two versions of a diary. It prevents the second version from being written.

The writer claim

The book records which install may write it:

PartMeaning
Device identityUnique to one install of Boardgrid. It is not shared through iCloud or carried in a device backup, so a reinstall or a new device is a new identity.
Device nameWhat other devices' banners call this one.
Claim timeWhen the claim was made.
EpochA counter that goes up by one on every takeover.

One claim outranks another if it has a higher epoch. At equal epochs the earlier claim wins.

Becoming the writer

EventResult
The first install to write a bookIt claims the book.
An install opens a book claimed by anotherIt opens read-only and shows the banner.
You take over on a read-only installIts claim gets a higher epoch than any it has seen. It becomes the writer.
You restore a backup on an installIt becomes the writer, above the book it replaces, the backup's own claim and the iCloud copy's claim.

Takeover, step by step

  1. You tap Use this device for writing and confirm.
  2. The install fetches the freshest copy from iCloud first, so it takes over the latest book and not its own older copy.
  3. It writes a new claim with a higher epoch and records the takeover in its log.
  4. The previous writer learns of the new claim the next time it opens the book or hears from iCloud. It adopts the new writer's book and drops to read-only.

What happens to the old writer's unsynced changes

If the old writer had changes it never uploaded, they are not merged into the new writer's book. Boardgrid does two things about that:

  • The old writer keeps its own last copy of the book in a file on that device, and tells you where: Another device now writes this book.
  • The takeover confirmation warns you beforehand: "Changes it has not uploaded yet will not be added here."

To avoid the situation, let the current writer sync before you take over from it.

Writes that are refused

SituationWhat Boardgrid does
A read-only install tries to change anythingThe change is refused in the app, with the writer's name.
An install that has lost writing, but does not know yet, tries to saveJust before saving, it checks the iCloud copy. If another claim outranks its own, the save is refused and it becomes read-only.
A stale copy arrives from a device that has lost writingIt is refused. The writer puts its own book back as the iCloud copy.
A blank book arrives from a device that was never set upIt is never adopted over a facility that has been set up, whatever the clocks say.
A copy arrives from an older version of Boardgrid that does not know about writersIt is treated as stale and refused. Update Boardgrid on every device.

Three reasons a device will not save

The read-only state has one gate and three causes:

  1. Another device is the writer. Take over, or work on the writer.
  2. A date review is waiting. Complete Check your dates.
  3. The book could not be read. Choose an option on the recovery screen.

The size limit

iCloud's key-value storage holds a limited amount. Boardgrid stops syncing a book that has grown past about 900 KB and says so in Settings: "The book has outgrown iCloud key-value sync. Use a file backup."

Move old records to archive brings it back under by moving the oldest checked-out stays and closed incidents to an archive on that device.

What syncs and what does not

Syncs between your devicesStays on the device
Settings, rate card, admission rules, templates, agreement textPet photos and arrival photos
Rooms, blocks, households, petsVaccination certificate photos
Bookings, payments, refunds, issued bills and amendmentsSigned agreement PDFs
Care instructions and recorded careThe archive of older stays
Vaccination records and admission evidenceThe local log of money-changing actions
IncidentsThe name remembered in Recorded by
The writer claimSnapshots are in iCloud Drive, separately from sync

Records sync. Files do not. A read-only device shows a pet without its photo, and a signed agreement's record without its PDF. A backup carries both.

The widget

Each device's Today widget reads a small summary written by the app on that device. It reflects that device's copy of the book.

Subscriptions

Boardgrid Pro follows your Apple Account through the App Store, separately from your book. Use Restore purchases on a second device.

Looking ahead

Related