admin管理员组文章数量:1302981
I am developing a Flutter application where I need a unique device identifier that meets the following criteria:
- Persists even after a factory reset (should not change).
- Is unique for each device (no duplicates across devices).
- Is visible to the user (so they can share it if needed).
- 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:
- Provides androidId, but it resets after a factory reset.
- On iOS, identifierForVendor changes after an app reinstall.
flutter_secure_storage:
- Stores a generated UUID persistently, but it gets wiped after a factory reset.
Using IMEI or Serial Number:
- IMEI requires special permissions and is restricted on newer Android version
- Serial numbers are no longer accessible on newer Android versions and iOS.
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)?
本文标签:
版权声明:本文标题:How to Get a Persistent and User-Visible Unique Device Identifier in Flutter (iOS & Android)? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741672268a2391674.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论