Search code examples
ioscocoa-touchicloudcloudkit

ICloud multiple user (different iCloud accounts) via public database?


It occurs to me that to provide multi user support for an app using iCloud, a public access container could be used. From a security point of view, only my app has access to the container anyway.

I'm just wondering if this is a viable idea? Or are there implications I haven't considered / mentioned?

I was thinking I could cover the cost via a subscription. I guess I could also monitor usage and have heavy / light user subscription tiers.


Solution

  • This is a valid strategy. I've implemented something like this in an app by allowing the user to log in to "nearby classrooms" (accounts) that were guarded by a passcode. This requires your app client being the authority on whether or not the user can see a piece of data, though, where this is normally handled by the server.