publishData method
Implementation
@override
Future<String?> publishData() async {
try {
final String? deviceSessionId =
await methodChannel.invokeMethod('publishData');
return deviceSessionId;
} on PlatformException catch (e, stackTrace) {
_logger.severe('Error publishing data: ${e.message}', e, stackTrace);
return e.message;
}
}