BLACK FRIDAY SALE: Save big on all my Swift books and bundles! >>

iCloud - Understanding how it works and scheme to use

Forums > Server-side Swift

Hi All,

I am part way through developing a reminder type app, it's a fairly simple app that loads into a foreach list of items in an array and so far I have got all the essentials sorted and I have moved on to iCloud now.

I have it working and syncing as needed, however I am struggling to understand why when I request all records in the public database in the development scheme I am given literally all of the records even though they are created using a different development Apple ID (I had problems logging into the sim with my personal one) and I'm wondering is this just development behaviour or should I assign an owner tag to filter by?

I was under the assumption that each record was given a unique id tied to the device/iCloud account and only that information would be available, but now I'm wondering if I am coding my query incorrectly or is this default behaviour for the development scheme to allow full testing, I don't want to assume anything when the time comes to move to the production scheme.

Any guidance or help on exactly how iCloud works would be greatly appreciated!


Hacking with Swift is sponsored by RevenueCat

SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.

Learn more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.