0

My app and its extension are using a sharing database through app group, and using different NSManagedObjectContext because extension cannot use NSManagedObjectContext from main app.

The problem is, when I change data in main app and call NSManagedObjectContext save, I can't get newest data in extension immediately (I tried set stalenessInterval to 0 and call refreshAllObjects in extension before get data but it's not work too). I can only get newest data after a few minutes, sometimes hours.

How can I get newest data from main app immediately?

0 Answers0