Shawn J Williams
Shawn J Williams

Reputation: 11

Getting unique iOS device information using React Native

I am using react-native for iOS development and having issues with getting unique device information. Getting the Mac address, a UUID or device name would be fine. Does Apple not allow you to gather this data?

Upvotes: 1

Views: 2722

Answers (1)

quirky purple
quirky purple

Reputation: 2219

I don't think there is any built in API in react-native to gather this information (someone correct me if I am wrong). However, you can try out one of a few libraries

Ios specific - generates a UUID once every time the app is installed

https://github.com/lazywei/react-native-device-uuid

Gathers more information than the previous such as device model, manufacturer, etc. Also gets a unique device ID

https://github.com/rebeccahughes/react-native-device-info

Upvotes: 2

Related Questions