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:
| Part | Meaning |
|---|---|
| Device identity | Unique 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 name | What other devices' banners call this one. |
| Claim time | When the claim was made. |
| Epoch | A 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
| Event | Result |
|---|---|
| The first install to write a book | It claims the book. |
| An install opens a book claimed by another | It opens read-only and shows the banner. |
| You take over on a read-only install | Its claim gets a higher epoch than any it has seen. It becomes the writer. |
| You restore a backup on an install | It becomes the writer, above the book it replaces, the backup's own claim and the iCloud copy's claim. |
Takeover, step by step
- You tap Use this device for writing and confirm.
- The install fetches the freshest copy from iCloud first, so it takes over the latest book and not its own older copy.
- It writes a new claim with a higher epoch and records the takeover in its log.
- 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
| Situation | What Boardgrid does |
|---|---|
| A read-only install tries to change anything | The change is refused in the app, with the writer's name. |
| An install that has lost writing, but does not know yet, tries to save | Just 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 writing | It is refused. The writer puts its own book back as the iCloud copy. |
| A blank book arrives from a device that was never set up | It 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 writers | It 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:
- Another device is the writer. Take over, or work on the writer.
- A date review is waiting. Complete Check your dates.
- 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 devices | Stays on the device |
|---|---|
| Settings, rate card, admission rules, templates, agreement text | Pet photos and arrival photos |
| Rooms, blocks, households, pets | Vaccination certificate photos |
| Bookings, payments, refunds, issued bills and amendments | Signed agreement PDFs |
| Care instructions and recorded care | The archive of older stays |
| Vaccination records and admission evidence | The local log of money-changing actions |
| Incidents | The name remembered in Recorded by |
| The writer claim | Snapshots 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.