Get unique device id without ejecting
See original GitHub issueThis library allows you to get unique device id / Mac address of Android devices, which doesn’t change after reinstallation.
Expo.Constants.deviceId changes after every reinstallation (even if the app version number is the same).
Is there a way to get an unique id for Android that doesn’t change after reinstallation (at least for if it’s the same version), without ejecting?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Expo get unique device id without ejecting - Stack Overflow
We will need to create our own unique identifier below. Solution: ... deviceId is deprecated and will be removed in Expo SDK 44)....
Read more >Unable to get unique device id without ejecting expo #16369
Add a method to get unique device id for a device and it should be remain same for the lifetime of the that...
Read more >Device id in expo without ejecting, How to generate id ... - Reddit
On boot, check to see if you have the UUID stored with your AsyncStorage. If you don't have it, generate one and store...
Read more >How to retrieve an Unique ID to identify Android devices
There are many good reasons to avoid that. Best solution is probably to identify a particular installation by using UUID solution. However, if...
Read more >Expo get unique device id without ejecting-React Native
Coding example for the question Expo get unique device id without ejecting-React Native.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We are using deviceId in our App to detect whenever an user logs in with a new device, to do the proper device activation, but when the value changes after reinstallation we have to do all the device authentication again, being the same device, it doesn’t make sense, can this be fixed? is this the only way to get a unique identifier from the device? there should be another property that is not related to expo installation
My most recent comment explains why getting the IMEI and other especially privacy-sensitive fields is something that is appropriate to implement yourself and is not appropriate for the Expo client.
Additionally I would like to re-affirm that Expo cannot add every feature that is requested. Development and maintenance is expensive and to be sustainable from both engineering & business standpoints we need to be judicious in the APIs we choose to include or develop.