isServiceRunning method

Future<bool> isServiceRunning()

Check if service is currently running

Implementation

Future<bool> isServiceRunning() async {
  if (Platform.isIOS || Platform.isAndroid) {
    return false;
  }

  try {
    final service = FlutterBackgroundService();
    return await service.isRunning();
  } catch (e) {
    debugLog('❌ [CallBackgroundService] Error checking service status: $e');
    return false;
  }
}