icloud

CloudKit: Preventing Duplicate Records

你离开我真会死。 提交于 2019-12-12 08:57:50
问题 I am working through an app that pulls data from an external web service into a private CloudKit database. The app is a single user app, however I am running into a race condition that I am not sure how to avoid. Every record in my external data has a unique identifier that I map to my CKRecord instances. The general app startup flow is: Fetch current CKRecords for the relevant record type. Fetch external records. For every external record, if it doesn't exist in CloudKit, create it via batch

CloudKit: CKFetchRecordChangesOperation, CKServerChangeToken and Delta Download

让人想犯罪 __ 提交于 2019-12-12 08:14:28
问题 My question is related to the "Delta Download" thing as it was named in WWDC 2014 Advanced CloudKit. I'm trying to make syncronization for my Core Data app, which is iPhone only for now (think: there is only one device active). So, basically the app will store user records in the cloud from one same device, for the most cases for now. I have trouble with understanding custom zone feature which is based on CKFetchRecordChangesOperation aka Delta Download. As I got it right, we have

Core Data with iCloud design

六月ゝ 毕业季﹏ 提交于 2019-12-12 08:10:47
问题 Im on iOS 7 and want to use core data with iCloud, this is working well, the issue I wanted some input on is the following. Some of my Core Data objects have related images/large text files which I was storing as files on the file system and just setting the url of these items as string properties. Now obviously this wont just work with iCloud Core Data sync because iCloud has no notion of these files. I was wondering if you had any suggestions on how to handle this? 1) I could store the

How to use Sample Code of “Core Data with iCloud” session 227 in WWDC 2012?

爷,独闯天下 提交于 2019-12-12 07:24:25
问题 I'm strugling few weeks to solve this problem.. so please help me out to solve this problem. I downloaded the sample code of core data with iCloud from apple WWDC 2012. and tried to use it for my application but nothing worked. of course, I changed some code little bit.. but I don't know exactly what I should do and can't find any website that saying about it and tutorials.. I spended few weeks already and I'm tired. I know this is because of my lack of skill. problem I'm facing is... - (void

Syncing only one entity in Core Data to iCloud

Deadly 提交于 2019-12-12 06:53:01
问题 I'm an iOS developer experimenting with iCloud and Core Data for a feed reader application. I have Core Data set up for two entities, one for an Item and another for a Channel. The Channel entity contains the information that I would use to have a user's subscribed websites synced to all their devices. In my own research, I have only found a way to sync both entities in Core Data. My question is: is it possible to sync only one Core Data entity to iCloud? I can post my code if it would help.

Using same iCloud enabled CoreData store across Watch Extension and iPhone

不问归期 提交于 2019-12-12 06:14:12
问题 I'm witnessing some strange behaviour when opening iCloud Enabled CoreData store from Apple Watch Extension. I'm using the same iCloud Container across all targets. Here is a picture that shows what folder (ubiquity container) structure looks like inside the ubiquity container : It looks like it creates different stores for iPhone & Watch I'm sharing the same CoreData Stack between iPhone app & Watch Extension. Any ideas why this is happening ? If I understand this correctly it treats iPhone

iCloud Calendar empty response

爱⌒轻易说出口 提交于 2019-12-12 05:38:24
问题 I have sent below request to iCloud calendar service to get all calendar list. But response is always empty. Can anyone help me? Request: GET /10232836851/calendars/F41F7478-4345-4A4A-8CD5-548122EF2C22/ HTTP/1.1 HOST: pxx-caldav.icloud.com user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2 authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXX== depth: 1 content-type: text/xml Response Header: Server: AppleHttpServer/a6f3179 Date: Fri

CloudKit iOS how could I set World Write Permission

让人想犯罪 __ 提交于 2019-12-12 01:56:18
问题 How could I set World Write Permission on the iCloud Dashboard cause now it's disabled, and really need it 回答1: Short answer: You can't. For a running CloudKit app, a container’s public database is always readable, even when the user is not signed in to their iCloud account on the device. Saving records to the public database and accessing the private database requires that the user be signed in. If your app does more than read data from the public database, check to see whether the user is

iCloud calendar: Getting unauthorized error from CalDav server

倖福魔咒の 提交于 2019-12-12 01:43:21
问题 I'm trying to PUT an event on iCloud calendar using CalDav. After several proper requests and responses and getting the user principal and calendars, when i try to PUT an event, the server returns Unauthorized error. Here's the network log from fiddler: Request: OPTIONS https://p49-caldav.icloud.com/ HTTP/1.1 Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Cocoa - How to detect change in ubiquity container

筅森魡賤 提交于 2019-12-11 19:34:01
问题 I've got an OS X app syncing a single document through a ubiquity container back and forth to an iOS equivalent app. The iOS app receives data whenever it changes on the Mac side and sends it whenever it changes on the iOS side (so the iOS app is working all around), and the Mac app sends the data whenever it is changed on the Mac side and it receives the data when the app is launched, but it doesn't seem to be checking again for any data while it runs. I'd like it to update with any changes