talira

iOS unique identifiers with a chosen level of persistence

open sourceMITfree

FCUUID is an Objective-C library for iOS that gives UUIDs with different levels of persistence: one per call, per session, per installation, per vendor (like identifierForVendor) or per device, which survives reinstalls and changes only on a system reset. It can also list the device UUIDs of the same user through iCloud key-value storage, to manage guest accounts across devices, and migrate an existing UUID or UDID.

Problems it solves

  • keep the same device identifier on iOS after the user reinstalls my app
  • replace UDID with an identifier that lasts across app installs
  • recognise the same user's other devices to manage guest accounts

Features

  • UUIDs persistent per session, installation, vendor or device
  • device UUID that survives app reinstalls
  • list of a user's device UUIDs through iCloud key-value storage
  • migration from a previously stored UUID or UDID

Limitations

  • Sharing UUIDs across a user's devices needs iCloud key-value storage enabled, and across apps needs Keychain sharing with the same bundle seed.1