In SDK version 2.1 ESD #2 applications, after creating, updating or deleting records, you called the save method to save the change to the local database, and called submitPending to send the change to the server. In SDK version 2.1 ESD #3 applications, after updating or creating records, you call the save and submitPending methods, and call synchronize to send the changes to the server.
[newCustomer save];
[newCustomer submitPending];
@try { [SUP101SUP101DB synchronize]; } @catch (NSException *exception) { MBOLogError(@"%@: %@", [exception name], [exception reason]); }
The above code examples synchronize the default group. Alternatively, you can synchronize based on the synchronization group the MBO belongs to.
NSString *customer_sg = [customer metaData].synchronizationGroup; [db synchronize:customer_sg];