iOS CoreData Conflicts

The BlueCats SDK uses Core Data and in some cases this can cause conflicts. If you listen for Core Data notifications, remember to pass in your own context to avoid receiving BlueCats Core Data notifications.

Please see the Apple documentation on notifications.

Objective-C
[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(contextDidSaveMainQueueContext:)
                                             name:NSManagedObjectContextDidSaveNotification
                                           object:[self "YOURCONTEXT"]];
Swift
NSNotificationCenter.defaultCenter().addObserver(self, selector: "contextDidSaveMainQueueContext:", name: NSManagedObjectContextDidSaveNotification, object: self.YOURCONTEXT)