How can I synchronize my app with iCloud? - cosmicmind

I have an issue with my app when I try to synchronize my app with Graph library with iCloud. I have follow the Graph instructions, "To connect Graph to iCloud, setup the iCloud entitlements with the iCloud" but not working for me. What can I do?? I also activate iCloud in the tab iCloud capabilities, without Key Value Coding, iCloud Documents and CloudKit enabled.
Please, explain me how can I resolve this and what can I wrong.
Thanks a lot.

Try this: Graph iCloud. Thank you!

Related

Do I need any iCloud settings before using Ensembles for CoreData & iCloud syncing?

I'm developing an app which uses CoreData and is already released. I'm trying to add syncing feature using iCloud and Ensembles 1.x. I added codes which are told in the readme, but syncing doesn't happen. The debug log says it can't leech to ensemble.
I enabled iCloud for the project, but only for Key-value storage which is used for another purpose. Do I need to enable other services such as iCloud Documents or CloudKit?
Also, I have this line like sample codes do, and wondering ubiquityContainerIdentifier shouldn't be nil. But I have no idea what I should pass. Could you please give me any advices?
cloudFileSystem = CDEICloudFileSystem(ubiquityContainerIdentifier: nil)
Thank you in advance.
You do need to have iCloud Documents enabled.
See the Simple Sync example app to see the things you have to setup.
I think passing nil should work. That will choose the default iCloud container for you (e.g. iCloud.com.mycompany.myapp). If you need a different container, just set that up in your capabilities for the target, and use that.
Note also there is a free book at http://leanpub.com/ensembles

How to get started with SQLite, iCloud and CoreData?

I am trying to follow Apple's Using the Sqlite Store with iCloud to add CoreData sharing between devices. I'm on an outdated manual (2014-07-15) which, on page 8-9 shows how to enable iCloud in an existing app; however, the example is for documents, not for SQLite and when trying to enable for SQLite, the images are not up to date with XCode 6.
Can someone please tell me what I'm supposed to use (code-wise) to get this started?
I found my answer here:
http://www.techotopia.com/index.php/Preparing_an_iOS_6_App_to_use_iCloud_Storage
It goes step-by-step to configure an app for using iCloud on multiple devices.

iCloud Alternative for core data like data synchronization

I am planning to develop an app which will use a database.
This database will need to be synchronized accross multiple devices.
I need something like iCloud + CoreData but able to work also from Android and Windows
Do you know if this magical thing exists?
Thanks
if it's ok that you need to be connected (no fully offline mode) - StackMob can be of help to you.
their iOS SDK even provide CoreData interfaces, and if you don't like them - you have REST APIs
Also may be you should look at:
- Simperium (no Android SDK, only REST APIs,)
- Parse.com

Problems with iCloud sync notifications NSPersistentStoreDidImportUbiquitousContentChangesNotification and core data

I've successfully added iCloud sync for coredata in that i can see the data being saved to the cloud ubiquitous store.
I'm running the app on the simulator and an iphone simultaneously. If I add or save data the store grows. BUT, neither app receives the NSPersistentStoreDidImportUbiquitousContentChangesNotification and therefore the data is not synced.
I've based my implementation on the Tim Roadley blog (http://timroadley.com/2012/04/03/core-data-in-icloud/) whihc was very helpful.
Any help would be muc appreciated
If you read the very first paragraph of Tim's article you will see this. "Note: iCloud does NOT work in the iOS Simulator. I recommend testing on two devices, such as an iPad and an iPhone at the same time."
I believe that's your answer. ;-)
EDIT:
iOS 7 now supports this

Need to Sync iPhone App between iPhone/iPad/iPod Touch etc. How? Cloud? Zsync? Dropbox?

I have received requests for my iPhone app, to be able to sync it between a person's iPhone and iPad, or between two iPhones in the same family, etc. I have been searching online now for some time, and this still is not clear to me. I am a pretty new developer, and I know enough to have gotten an app released, but I am not a professional programmer.
I know that DropBox and SugarSync use "the cloud", but I have not used them as yet and I am not sure how I would implement them for my Core Data database. I also watched a video for Marcus Zarra's ZSync, which looks awesome, but I do not have a desktop application yet, and I'm not sure that that is the solution for me.
I downloaded the DropBox api and sample app and am starting to play with it, but I don't want to waste too much time if I am heading down a rabbit trail. I would love if the iOS offered some sort of a sync option but I looked and I'm pretty sure it doesn't.
This seems like pretty complicated stuff. I would love if someone could point me in the right direction. Maybe even a tutorial if there is one. Just to keep Core Data database synced between multiple (maybe even more than 2) iDevices. Any help would be greatly appreciated.
It seems that, as expected, there is no readily available sync option without writing your own algorithm. Even then, it seems to be hit and miss at best as you add users and devices.
I have decided that for me, for now, the best option is DropBox, and using a simple file backup/restore. When you download the DropBox SDK, there is an iPhone App example in there that well demonstrates how to incorporate it into your app.
The issue I am now having has to do with Core Data. Once I overwrite my SQLite file, I am having a difficult time refreshing my data. It works fine if I close and restart the app, but I don't want to have the user do that.
I have tried many solutions from this site, and none of them have worked completely for me yet. I understand that I have to delete and recreate the persistent store, and that I have to delete and recreate my objects, and that I might have to delete and recreate my view controllers in my tab bar. And possibly also my MOC and MOM.
I understand the part about deleting and recreating the persistent store. I can delete my objects, but I am not sure how to re-create them. I think my issue is that I have a tab bar controller and my top level views do not get dealloc-ed. I have found snippets of code here and there but have not been able to piece them together for a solution yet and all I have is one giant mess of commented out code.
Just an update, and an answer to the syncing issue: iCloud seems like it will actually app syncing. I haven't tried it yet, but am planning to implement it. However, since users will only have limited free iCloud storage, and many won't want to pay, I am also implementing Dropbox for Backup/Restore (only). Hope this helps!

Resources