getDeviceId method
Returns the device identifier used by the native licensing layer.
This maps to Android SmartfaceMobile.getDeviceId(). It is useful for
active-device licensing support flows where the backend needs the device
hardware identifier before license retrieval or activation.
Implementation
Future<String?> getDeviceId() async {
final response = await invokeNativeMethod('SmartfaceMobile.getDeviceId');
if (response.isLeft()) {
return null;
}
return response.asRight?.toString();
}