getOrCreatePersistentUniqueId method
Implementation
Future<String> getOrCreatePersistentUniqueId() async {
String uniqueID = '';
try {
final id = await platform.invokeMethod('getUniqueId');
uniqueID = id;
} on PlatformException catch (e) {
uniqueID = "Failed to get ID: '${e.message}'.";
}
return uniqueID;
}