registerDevice static method

Future<bool> registerDevice(
  1. Map<String, dynamic> profile
)

Implementation

static Future<bool> registerDevice(Map<String, dynamic> profile) async {
  print("res--------------- " + profile.toString());
  String res = await _channel
      .invokeMethod('doRegister', <String, dynamic>{'profile': profile});
  print("res1 " + res);
  if (res == "true") {
    return true;
  }

  return false;
}