Reputation: 11
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
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