iCloud sync live data only #658

ipeisong opened this Issue Feb 4, 2014 · 0 comments


None yet

1 participant


The init code is

[MagicalRecord setupCoreDataStackWithiCloudContainer:@“C11S767E3P.com.ps.tasktimer” contentNameKey:@“_testKey” localStoreNamed:@“tasktimer_local” cloudStorePathComponent:nil];

Save object code:

[MagicalRecord saveUsingCurrentThreadContextWithBlock:^(NSManagedObjectContext *localContext) {

} completion:^(BOOL success, NSError *error) {
    NSLog(@“saved: %@“, success ? @“YES” : @“NO”);

I run it on 2 devices. When I add data from one the entry appears on another device fairly quickly.

However when I kill the app and launch it again, no data is showing. Shouldn’t the history data also in “tasktimer_local”? Why it is not loaded?

And I start to add entries again, everything is fine. Just the history data never showed up.

If I delete the app and reinstall it, no data is synced back too.

How can I load data from local DB and sync the history data from iCloud?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment