I am working on OSX 10.8 application that uses iCloud Key Value store. It does not use Document storage.
I would like to determine if iCloud Key Value store is available for a user.
I was trying to use cloud like:
+ (BOOL)isCloudAvailable {
id currentCloudToken = [NSFileManager defaultManager] ubiquityIdentityToken];
return (currentCloudToken) ? YES : NO;
}
However, the call to ubiquityIdentityToken
always returns nil, even when a user is logged into iCloud.
If I configure a Ubiquity Container as well as the key-value store then that call does work.
However, I've just had my app rejected by Apple review for indicating I need "Document & Data storage" without having any requirement in the app for it. I was simply using it to determine if iCloud was available.
Is there anyway to determine if iCloud key-value store alone is available to a user?