+11
Loading
A third sync service, beside Nextcloud and gpodder.net, for the user who
only wants to go from an iPhone to an iPad: no account, no server. It
goes through iCloud's key-value store in the user's own account — up to
1 MB per user, kept by the system on each device.
What is stored (SyncKit/CloudLibrary, free of iCloud and tested):
- `subscriptions`: every feed ever followed, subscribed or not, with the
date of that change. The newest change wins, feed by feed; a removal
stays as such, or a device that had not heard of it would subscribe
again. Each device also keeps its own merged view, so a change it made
survives another device overwriting the key from an older one.
Radios travel too: only Skingomz reads this.
- `positions.<device>`: each device's own latest positions, as gpodder
play actions within 120 KB. A device writes only its own key — devices
never overwrite one another — and reads the others' with the merge of
the previous commit: newest position wins, episodes found by guid then
by media address without its query. Keys silent for 180 days go.
- `queue`: the whole queue with the date it last changed; the newest
wins, resolved here by the same matching, refreshing a feed once for
an episode this device does not know yet.
Turning iCloud on, or another iCloud account, makes the next sync a
first one: both libraries joined, nothing removed.
When: on launch, on every change from another device, at the triggers
of the previous commit (pause, end of an episode, leaving and coming
back to the app), and when subscriptions or the queue change here.
Réglages › Synchronisation gains "Aucune" and "iCloud"; the account
fields only show for a server. The choice is stored when made.
Also fixes a fault of the previous commit, found in testing: a new sync
request cancelled the one under way rather than only its wait, and every
read and request of the cancelled exchange failed silently. The
debounced task now spawns the exchange in a task of its own.
Distribution: the app gains the iCloud key-value entitlement on both
platforms, with the same identifier, so iPhone, iPad and Mac share it.
Apple allows it for Developer ID too, but it then needs a provisioning
profile: release.sh lets Xcode fetch one (-allowProvisioningUpdates).
Verified on two iOS 27 simulators against a DEBUG-only stand-in for the
store (-uiCloudServer, polled every 2 s), since simulators share no
iCloud account: the iPad's first launch took the iPhone's subscriptions
and positions with their dates; a third, simulated device's removal of
a podcast, queue of two real episodes (one found by guid, one by media
address under another token) and newer position reached both; removing
an episode from the iPhone's queue in its UI emptied it from the iPad's
within 5 s; each device rewrote only its own positions key, with no
echo. With the real store the app runs and writes nothing, the
simulators having no iCloud account. 16 new tests. Not tried: real
iCloud between two devices, and the Mac.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>