getDeviceId static method

Future<String> getDeviceId()

Get the unique id of the devices Returns empty if native returned null

Implementation

static Future<String> getDeviceId() async {
  if(!Platform.isAndroid) return "";
  return await _channel.invokeMethod("Pushe.getDeviceId") ?? "";
}