isBackgroundSyncActive static method

Future<bool> isBackgroundSyncActive()

Verifica se a sincronização em background está ativa

Implementation

static Future<bool> isBackgroundSyncActive() async {
  try {
    // Não há uma forma direta de verificar se uma tarefa específica está ativa
    // no WorkManager, então assumimos que está ativa se foi iniciada
    return _isInitialized;
  } catch (e) {
    SyncUtils.debugLog('Erro ao verificar status da sincronização em background: $e', tag: 'BackgroundSyncService');
    return false;
  }
}