-1

My server wants to track unique number of devices.

But UIDevice.current.identifierForVendor?.uuidString is changing for each installation.

Please suggest for any alternate.

Venkat A
  • 1
  • 3

1 Answers1

0

As an alternative to storing a identifier in the KeyChain, you could try using the generateToken method of the DeviceCheck framework.

Using the DeviceCheck APIs, in combination with server-to-server APIs, you can set and query two bits of data per device, while maintaining user privacy. You might use this data to identify devices that have already taken advantage of a promotional offer that you provide, or to flag a device that you've determined to be fraudulent.

Alexandre G.
  • 1,781
  • 14
  • 17