Ubiquity identity token always nil if only using key value store

Originator:Greiner.Mike
Number:rdar://14231620 Date Originated:21-Jun-2013 02:22 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.1.3 (10B329)
Classification:Other Bug Reproducible:Always
 
Summary:
-[NSFileManager ubiquityIdentityToken] appear to always return nil in cases where only the key value store part of iCloud is in use (i.e. there is no ubiquity container).

Steps to Reproduce:
- Configure an iOS app with iCloud entitlements for the key value store but no ubiquity container
- Run the app on an iOS device configured with an iCloud account.
- Observe that -[NSFileManager ubiquityIdentityToken] is always nil

Expected Results:
- -[NSFileManager ubiquityIdentityToken] returns a value – OR – the documentation should make it clear that an ubiquity identity token is only available when apps use a ubiquity container.

Actual Results:
-[NSFileManager ubiquityIdentityToken] returns nil even though the user is signed in with a valid iCloud account with Documents & Data syncing enabled.

Regression:
No

Notes:
Related thread in dev forums: https://devforums.apple.com/message/835779#835779

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!