TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

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!

4      

Hacking with Swift is sponsored by Superwall.

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

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.