Originally created by @mikhailovas on GitHub (Mar 26, 2019).
Hi there,
I have notifications extension. So each time I receive push-notification app makes changes to base. If app is not running - everything is ok. All new data on its place.
But if app is currently running in background nothing changes.
I've tried to use CoreStore.refreshAndMergeAllObjects() but it doesn't help
Maybe someone know?
Originally created by @mikhailovas on GitHub (Mar 26, 2019).
Hi there,
I have notifications extension. So each time I receive push-notification app makes changes to base. If app is not running - everything is ok. All new data on its place.
But if app is currently running in background nothing changes.
I've tried to use CoreStore.refreshAndMergeAllObjects() but it doesn't help
Maybe someone know?
CoreStore doesn't support this yet. Theoretically, NSManagedObjectContext.mergeChanges(fromRemoteContextSave:into:) should be called on the app's NSManagedObjectContext and passing in the userInfo from NSNotification.Name.NSManagedObjectContextObjectsDidChange.
@JohnEstropia commented on GitHub (Apr 12, 2019):
CoreStore doesn't support this yet. Theoretically, `NSManagedObjectContext.mergeChanges(fromRemoteContextSave:into:)` should be called on the app's `NSManagedObjectContext` and passing in the `userInfo` from `NSNotification.Name.NSManagedObjectContextObjectsDidChange`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @mikhailovas on GitHub (Mar 26, 2019).
Hi there,
I have notifications extension. So each time I receive push-notification app makes changes to base. If app is not running - everything is ok. All new data on its place.
But if app is currently running in background nothing changes.
I've tried to use CoreStore.refreshAndMergeAllObjects() but it doesn't help
Maybe someone know?
@JohnEstropia commented on GitHub (Apr 12, 2019):
CoreStore doesn't support this yet. Theoretically,
NSManagedObjectContext.mergeChanges(fromRemoteContextSave:into:)should be called on the app'sNSManagedObjectContextand passing in theuserInfofromNSNotification.Name.NSManagedObjectContextObjectsDidChange.