Reputation: 690
I have a few questions:
1.Does getUniqueID() from react-native-device-info library can ever change? Or it’s staying the same all the time
Thanks
Upvotes: 2
Views: 6219
Reputation: 5929
It will change on ios if the user deletes the app. But not in android prior to oreo. Here's the link about the IDFV https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor. This picture is from the react-native-device-info readme.
So if you have only one app in the app store and the user deletes your app, the unique ID won't stay the same. But if the user has more than just app from you, the id will be the same cause this will come from the app still on the device.
Upvotes: 2