magicalpanda/MagicalRecord — Issue #118: Changes from other context are not merged to the main context when doing a background save
Author: jessearmand
Created: 2011-12-23 07:51:38+00:00
State: open

I noticed that line 72 of MRCoreDataAction is not set to notify the main context:

localContext.MR_notifiesMainContextOnSave = NO;

This is even the case for saving data in the background with saveDataInBackgroundWithBlock:
When I tried to relaunch the app (which is using the main context), the data is not merged to the main context, so it's empty.

Why is it done this way? How to save the data properly in the background so it would be available when the app is relaunched?