initialize method

void initialize()

Initialize the sync service and start the batch timer.

Implementation

void initialize() {
  if (!config.isValid) {
    debugPrint('CloudSyncService: Invalid configuration, sync disabled');
    return;
  }

  _startBatchTimer();
  debugPrint('CloudSyncService: Initialized with endpoint ${config.logEndpoint}');
}