BLACK FRIDAY SALE: Save 50% 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 Guardsquare

SPONSORED AppSweep by Guardsquare helps developers automate the mobile app security testing process with fast, free scans. By using AppSweep’s actionable recommendations, developers can improve the security posture of their apps in accordance with security standards like OWASP.

Learn more

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.