ICloud ubiquityIdentityToken equivalent in iOS5

In iOS6, this method returns an identifier unique to each iCloud account:

[[NSFileManager defaultManager] ubiquityIdentityToken]

In iOS5, the only way to check if iCloud is available is:

[[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil]

This will be done to check the availability of iCloud in iOS5, but how can I distinguish between users (iCloud accounts) in iOS5?

I am syncing Core Data in iCloud, but I also want to be able to use the application without an iCloud account. Therefore, I cannot use the .nosync folder and therefore I need to control access to stores (make sure that each iCloud account can only access its own files). To do this, I placed all Core Data storages from one iCloud account in my own folder, the folder name is created using ubiquityIdentityToken, since this is unique for each iCloud account.

Is there any other way to get UUID based on iCloud account? As far as I researched, there is nothing unique in the URLForUbiquityContainerIdentifier that I can use. Or is there another way that I can control access other than using folder access?

: ubiquityIdentityToken OSX 10.7

+5
1

, API iOS 5 API.

Core Data iCloud, , iOS 5. iCloud Core Data, iOS 6.

+2

All Articles