Skip to main content

Synchronizing master data

To work with the app in offline mode, perform synchronization.

Note

We recommend syncing once a day, at the beginning of the day, with a stable internet connection.

To synchronize master data specify the token, the list of stores, and the sync command.

Example:

[[ICDeepLink shared] startSyncListCustomerId:@[@"id1", @"id2", @"id3"]];

After synchronization is completed, control from the IC app is transferred back to the calling application. The calling application receives the sync status in the delegate method and an error code if synchronization failed.

- (void)syncStatus:(BOOL)status withErrorCode:(NSNumber * _Nullable)errorCode;
  • status - sync status. YES — synchronization was successful, NO - there was a problem with the exchange, repeat the synchronization.
  • errorCode - error code, returned if an error occurred during the exchange.

Error codes

  • 1201 — no internet connection.
  • 1202 — synchronization canceled by the user.
  • 1203 — time limit exceeded.
  • 1204 — problems syncing in IC.

If you have any questions or problems, contact technical support.