31 lines
683 B
C#
31 lines
683 B
C#
using UIKit;
|
|
|
|
namespace IronLicensing.Client;
|
|
|
|
public partial class MachineIdentifier
|
|
{
|
|
private partial List<string> GetMachineComponents()
|
|
{
|
|
var components = new List<string>();
|
|
|
|
try
|
|
{
|
|
// iOS vendor identifier
|
|
var vendorId = UIDevice.CurrentDevice.IdentifierForVendor?.ToString();
|
|
if (!string.IsNullOrEmpty(vendorId))
|
|
{
|
|
components.Add(vendorId);
|
|
}
|
|
|
|
components.Add(UIDevice.CurrentDevice.Model);
|
|
components.Add(UIDevice.CurrentDevice.SystemName);
|
|
}
|
|
catch
|
|
{
|
|
// Fallback
|
|
}
|
|
|
|
return components;
|
|
}
|
|
}
|