Our app can't store a simple key/value pair in iCloud. Any idea why?
Our app can't store a simple key/value pair in iCloud. Any idea why?
- Subject: Our app can't store a simple key/value pair in iCloud. Any idea why?
- From: G S <email@hidden>
- Date: Mon, 12 Dec 2011 18:12:00 -0800
Hi all.
I've configured our app for iCloud usage and push notifications with
the appropriate entitlements, under a provisioning profile that is set
up for these, and a developer profile that's associated with this
provisioning profile.
The application identifier matches what's specified in the
provisioning profile (com.ourcompany.ourproduct). I don't get any
errors when building the app.
iCloud is enabled on my phone, and is working (as evidenced by my
calendar, contacts, and bookmarks being updated).
And yet this fails:
NSUbiquitousKeyValueStore* iCloudStore = [NSUbiquitousKeyValueStore
defaultStore];
[iCloudStore setString:localID forKey:@"ourKey"];
If I call synchronize after this, it returns NO. If I allow plenty of
time for the update to occur, subsequent attempts to retrieve the data
still fail.
Any idea what the culprit could be here?
Thanks!
Gavin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden