← All posts

Product update3 min read

How backup decides a place has changed

Backup uploads a place again only when its files changed after the last upload. Reading that date needed a privacy manifest entry, added in build 260.

ICIDO's backup is optional. Scanning, finding yourself, tagging spots, and opening a place someone shared need no account, and they work with no signal. An ICIDO account is needed only to back up places or to publish one. Backup is off until it is switched on, and switching it off deletes the copies held.

When backup is on, it has one question to answer over and over: has this place changed since it was last uploaded? This post is about how it answers that, and about a declaration the answer turned out to need.

What travels, and what does not

A saved place is a world map, a simplified mesh, and a thumbnail, stored on the iPhone. For backup and sharing, those are packed into a single .spacemap file with a small manifest.

With backup on, only the place is copied to the account: its shape, its layout, and the names and tags given to it. Anything said to ICIDO, anything the camera remembered, visit history, and location never leave the iPhone, backup on or off. There is no setting that uploads them.

One comparison per place

For each place it has uploaded, backup keeps a small record: the id the server gave it, a version, and the time it was uploaded. Each record is stamped with its owner, so signing out does not orphan it.

The test for uploading a place again is one comparison. If the place's files changed after its last upload, it goes up again. That is what keeps a backed-up place current after each Update Map.

The comparison looks at when the files changed, not at what format they are in. So a change of file format alone never triggers a mass re-upload of every place.

Backup also stays out of the way. It holds off while a scan is live, backs off under memory pressure, and can be cancelled.

The date it reads

"When the files changed" has to come from somewhere. Backup reads the modification date of the place's own files, the world map, mesh and thumbnail inside the app's own container.

Apple counts reading a file's timestamp as a required-reason API. An app that uses one has to declare it in its privacy manifest, with an approved reason. Apple has five such categories: file timestamps, system boot time, disk space, active keyboards, and user defaults.

ICIDO's manifest declared only user defaults. Backup shipped in version 1.3 reading modification dates without the matching entry. Uploads went through, but an undeclared required-reason API is grounds for App Store Connect to refuse a build.

The fix, and the sweep

The manifest now declares the file-timestamp category with reason C617.1. That reason covers metadata of files inside the app's own container, and here the dates are not shown to anyone and not sent anywhere.

The same change checked all five categories across the whole app. It found nothing else: no boot-time, disk-space or keyboard APIs, and user defaults was already declared.

A rule now sits in the manifest itself. Any new use of a file date, disk space, uptime or keyboard API gets its category added in the same commit.

None of this changed what the app collects. The App Privacy label lists six data types, and they are untouched, so the label still matches. Required-reason declarations are not part of that label.

Build 260 is the first to carry the declaration. It went to TestFlight on 29 September. The version on the App Store is 1.3.

What backup is not

Backup is a copy, not sync. A place edited on two iPhones becomes two places on the server. They are reconciled by name and reported, never merged. When someone signs in, backup reconciles against the server by name, and any ambiguity is reported rather than guessed.

Restore runs the other way. It lists what is on the account and not on this iPhone, linked by server id rather than by name, and it states the size before anything downloads. A restored place is linked straight back to its record, so it does not upload itself again as a duplicate.

Account deletion is in the app, under Settings, then Account. It removes the account and everything held for it, including backed-up places. It does not touch the places on the iPhone.

Related reading