startBackgroundService method
Start background service
Implementation
@override
Future<bool> startBackgroundService() async {
try {
final result =
await methodChannel.invokeMethod<bool>('startBackgroundService');
_isBackgroundServiceRunning = result ?? false;
return _isBackgroundServiceRunning;
} on PlatformException catch (e) {
throw MCPBackgroundExecutionException(
'Failed to start background service: ${e.message}', e.details);
}
}