Performing Mobile Business Object Synchronization

A synchronization group is a group of related MBOs. A mobile application can have predefined synchronization groups. An implicit default synchronization group includes all the MBOs that are not in any other synchronization group.

Before you can synchronize MBO changes with the server, you must subscribe the mobile application package deployed on server by calling SUP101DB.subscribe(). This also downloads certain data to devices for those that have default values. You can use the OnImportSuccess method in the defined CallbackHandler to check if data download has been completed.

You can then call the submitPendingOperations:(NSString*)synchronizationGroup operation through the publication.

You can use a publication mechanism, which allows as many as 32 simultaneous synchronizations. However, performing simultaneous synchronizations on several very large Unwired Server applications can impact server performance, and possibly affect other remote users.

The package database class includes two synchronization methods. You can synchronize a specified group of MBOs using the synchronization group name:

[SUP101SUP101DB submitPendingOperations:@"mySyncGroup"];

Or, you can synchronize all synchronization groups:

[SUP101SUP101DB submitPendingOperations];