icloud

iCloud sync not sending data through ubiquity container

爷,独闯天下 提交于 2020-01-13 07:05:00
问题 I have been using iCloud in my apps for a while now and am recently having an issue where devices refuse to talk to each other. Or at least that's what I thought until I started logging the methods where the merging takes place. My persistentStoreCoordinator is set up as described in a previous question of mine. The problem is the following. When setting up my managedObjectContext , I add an observer to it to view the NSPersistentStoreDidImportUbiquitousContentChangesNotification notification

iCloud sync not sending data through ubiquity container

不想你离开。 提交于 2020-01-13 07:03:32
问题 I have been using iCloud in my apps for a while now and am recently having an issue where devices refuse to talk to each other. Or at least that's what I thought until I started logging the methods where the merging takes place. My persistentStoreCoordinator is set up as described in a previous question of mine. The problem is the following. When setting up my managedObjectContext , I add an observer to it to view the NSPersistentStoreDidImportUbiquitousContentChangesNotification notification

Is there an API to connect to iCloud and get contacts and contact changes? [closed]

感情迁移 提交于 2020-01-12 03:33:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I'm wondering if there is an API of some sort available from Apple for iCloud, to which one can hook into and get notified when contact information changes. The point of this is that I'm wondering whether it is possible to sync contacts from iCloud outside of iCloud (e.g. from iCloud to some sync server and then

iCloud Core Data Not available after running in Xcode 6 / ios 8 SDK

回眸只為那壹抹淺笑 提交于 2020-01-11 19:58:21
问题 I have an app that uses Core Data with iCloud sync. It works great in iOS 7. I'm having some trouble since running it in XCode 6 though, even on an iOS 7 device. Here's my test: on iOS 7 device: Download current live app from app store Sync data from iCloud Build and run new version of app Persistent Stores change, original data no longer available Here's screen shots of my provisioning profile and xcode setup: I've also tried the following entitlements: Just com.apple.developer.icloud

Private data sharing using CloudKit

三世轮回 提交于 2020-01-11 18:54:13
问题 Is there a straightforward way to share private data between two or more users using CloudKit? Public and private date are obvious, but there doesn't seem to be a way to allow a group of users to organize their own silo to share data amongst themselves without making it available to all the other users of the system and to the app developer. I have an academic collaboration app in mind but the simplest example would be private messaging between two users. I guess one could try to build a

Syncing of Calendar with iCloud lose the CalendarIdentifier

霸气de小男生 提交于 2020-01-06 03:24:07
问题 I am developing a Calendar App. In which calendars can be create by user and also need the iCloud Syncing feature so that user can get the same calendars on his/her other device. Now according to Apple Document: A full sync with the calendar will lose this identifier. You should have a plan for dealing with a calendar whose identifier is no longer fetchable by caching its other properties. CalendarIdentifier property of EKCalendar is not reliable. And using other properties we can not

How do I properly manage iCloud files via NSFileManager?

孤者浪人 提交于 2020-01-05 05:53:27
问题 I am attempting to add iCloud synching to my iOS/Mac app by using the iCloud methods on NSFileManager (no documents or file coordinators). The app needs to synch audio files across the various instances; create, delete and metadata changes. It isn't a collaboration style app, so I am not very worried about conflicts, etc. I have something basic working, but have run into some basic questions that I can't seem to find definitive answers to. When using iCloud, there are two local directories

Preventing NSUserDefaults from iCloud Backup

青春壹個敷衍的年華 提交于 2020-01-04 01:48:09
问题 There are three ways to write persistently to the device in iOS that I'm aware of: NSUserDefaults Custom Objects - Archived and Written to a PATH in NSDocuments SQLite Apple provide a mechanism to prevent iCloud backups with #2 i.e. - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL I use NSUserDefaults to store three images but to adhere to iOS Data Storage Guidelines - How do I prevent Backups with iCloud with NSUserDefaults? This question has been asked several times on SO but there is

iCloud sharing among other users [closed]

妖精的绣舞 提交于 2020-01-03 20:04:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . From what i know, iCloud is like a personal storage and you uses your own Apple ID for it. What i want to ask is that, is it possible for users to store for example an image and be shared with other users? Which means something like DropBox. You upload files into your DropBox account and there will be a url that

Prevent iCloud Backup of Folder

倖福魔咒の 提交于 2020-01-02 18:03:07
问题 I recently got rejected for my NSLibraryDirectory backing up wrong kind of data to iCloud. I am trying to prevent the entire directory from backing up to iCloud, as this directory doesn't contain anything but downloaded content. Would this code in the AppDelegate.m work? - (NSString *)applicationDocumentsDirectory { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSURL *pathURL= [NSURL