Jawad Abbasi
Jawad Abbasi

Reputation: 146

How to Get a Persistent and User-Visible Unique Device Identifier in Flutter (iOS & Android)?

I am developing a Flutter application where I need a unique device identifier that meets the following criteria:

  1. Persists even after a factory reset (should not change).
  2. Is unique for each device (no duplicates across devices).
  3. Is visible to the user (so they can share it if needed).
  4. Can be used for security purposes (e.g., detecting trusted devices and blocking fraudulent ones).

If a native Android or iOS developer knows a way to do this natively, they can also share their approach.

Approaches I Have Tried

device_info_plus package:

flutter_secure_storage:

Using IMEI or Serial Number:

Question

What is the best way to obtain a truly persistent, unique, and user-visible device identifier in Flutter?

If there is no built-in method, what alternative solutions exist (e.g., external device fingerprinting services or a combination of multiple identifiers)?

Upvotes: -1

Views: 47

Answers (0)

Related Questions