device_unique_id 1.0.1 copy "device_unique_id: ^1.0.1" to clipboard
device_unique_id: ^1.0.1 copied to clipboard

Get a reliable device identifier on Android and iOS — Android ID, iOS identifierForVendor, and a Keychain/EncryptedSharedPreferences-backed persistent UUID that survives reinstall.

Changelog #

1.0.1 #

  • Updated Android Gradle configuration to use built-in Kotlin support.
  • Added Swift Package Manager (SPM) support for iOS.
  • Fixed legacy Kotlin configuration warnings.

1.0.0 #

  • Initial release.
  • DeviceUniqueId.getPersistentId() — Keychain (iOS) / EncryptedSharedPreferences (Android) backed UUID, generated once on first launch.
  • DeviceUniqueId.getDeviceIdentity() — the above plus the raw platform id (ANDROID_ID on Android, identifierForVendor on iOS).
  • DeviceUniqueId.resetPersistentId() — clears the stored UUID (mainly for testing "new install" flows).
  • Standard platform-interface architecture so this can later split into federated platform packages without a breaking change.
3
likes
150
points
322
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Get a reliable device identifier on Android and iOS — Android ID, iOS identifierForVendor, and a Keychain/EncryptedSharedPreferences-backed persistent UUID that survives reinstall.

Repository (GitHub)
View/report issues

Topics

#device #device-id #unique-id #platform-channel

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on device_unique_id

Packages that implement device_unique_id