Skip to main content

durable_device_id 0.1.0 copy "durable_device_id: ^0.1.0" to clipboard
durable_device_id: ^0.1.0 copied to clipboard

A device identifier that survives a reinstall of the app: ANDROID_ID on Android, a Keychain item on iOS, local storage on the web. Answers null instead of throwing.

0.1.0 #

Added #

  • DurableDeviceId.read() and its platform-backed implementation PlatformDurableDeviceId.
  • Android: a SHA-256 digest of the package name and Settings.Secure.ANDROID_ID.
  • iOS: a UUID kept in the Keychain under the bundle identifier, readable after the first unlock and bound to the device.
  • Web: a UUID kept in the local storage of the origin, under a key that carries the path of the app; tabs opened together agree on one identifier through the Web Locks API.
  • Other platforms, and every failure, answer null.
  • The platform is asked once per run; a null answer is not remembered.

Requirements #

  • Flutter 3.47 or later; on Android an app built with Android Gradle Plugin 9 or later.
1
likes
160
points
100
downloads

Documentation

API reference

Publisher

verified publisherserdun.online

Weekly Downloads

A device identifier that survives a reinstall of the app: ANDROID_ID on Android, a Keychain item on iOS, local storage on the web. Answers null instead of throwing.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, web

More

Packages that depend on durable_device_id

Packages that implement durable_device_id