deviceId method

  1. @override
Future<String> deviceId()
override

Returns the unique device ID generated by the Cobrowse SDK.

Implementation

@override
Future<String> deviceId() async {
  String? rvalue;
  try {
    rvalue = await methodChannel.invokeMethod<String>('deviceId');
  } on PlatformException catch (e) {
    print('Cannot get device ID: $e');
  }
  return rvalue ?? '';
}