getDeviceToken static method
Implementation
static Future<Map?> getDeviceToken() async {
if (AliIotPlugin.debug) {
print("$TAG : getDeviceToken");
}
var result = await AliIotPlugin.methodChannel.invokeMethod('getDeviceToken');
if (result is Map<String, dynamic>) {
final data = jsonDecode(result["data"]);
return data;
}
return null;
}