Skip to main content

Synchronizing master data

To work offline, you need to synchronize the master data. We recommend synchronizing once a day at the beginning of the workday with a stable internet connection. To start synchronization, specify a list of store IDs as follows:

ICDeepLinkService.shared.sync(customerIds: ["id1", "id2", "id3"])

After synchronization is complete, control is returned to the calling application. The synchronization status and possible errors can be monitored using the delegate methods:

func sync(status: Bool);
  • status synchronization status. If true is specified, synchronization was successful; if false, there was a problem with the exchange. In this case, repeat the synchronization.

To get information about a synchronization error, use the method:

func error(_ error: ICDeepLinkError);
  • error - error code. If synchronization is unsuccessful, an appropriate error code will be passed to this method.

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