Device Identifier for Apple Vision Pro

Is there a Unity library that allows me to get the Device identifier for an Apple Vision Pro? I only see one available currently for iOS and tvOS.

I want to use the hardware device identifier property for license attribution for my app. Thanks in advance!

Pretty sure Apple has disallowed access to any of that kind of personal information for years now.

In any case it would need full disclosure through the Apple Tracking Transparency stuff:

If you just need a unique ID, either use Application.identifier (read and carefully understand the Unity3D docs for what that value is!), or else make one yourself with System.Guid() and store it.

The implementation for visionOS uses the same method as iOS (UIDevice.identifierForVendor), and Apple’s documentation claims that it’s supported on visionOS. I haven’t tested it, however.

1 Like

Is this property accessible in Unity or will I need to write an extern C interop for it?

This is the SystemInfo.deviceUniqueIdentifier property, which is accessible from Unity’s C# API.

1 Like