Files
ironlicensing-dotnet/Platforms/iOS/MachineIdentifier.cs
David Friedel 7d453f8f63 Initial commit: IronLicensing.Client SDK
Software licensing SDK for .NET MAUI applications with:
- License validation and activation
- Feature gating
- Trial support
- Offline validation with signature verification
- In-app purchase integration
2025-12-25 09:07:58 +00:00

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;
}
}