Tal Shani
Tal Shani

Reputation: 690

Does getUniqueID() from react-native-device-info can ever change?

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

  1. If it can change what parameter that his unique for the device from react-native-device-info library can’t be never change?

Thanks

Upvotes: 2

Views: 6219

Answers (1)

EQuimper
EQuimper

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.

enter image description here

Upvotes: 2

Related Questions