Device info is not working in simulator
Summary
| Version | 0.17.4 | | Affected OS | Android And Ios | | OS Version | Android 5 and above, ios 10 and above |
Current behavior
Device info is not working in simulator and it is working in real device.
Expected behavior
It must work both in simulator and device.
Hi, could you give a little more information? "Is not working" doesn't really say anything..
It will give the error undefined is not a object for DeviceInfo.
For Example in my component i am using the below code var DeviceInfo = require('react-native-device-info'); DeviceInfo.getUniqueID() will give undefined is not an object.
Could you try with 0.22.2? We changed the export method, that may be it
After updating to 0.22.2 it is working fine. Thank you @machour.
This is still an issue! I installed the latest version and it did not work on the simulator with the same error described above. I then attempted to revert to @0.22.2 and it still did not work @machour
Having similar issue as well in an emulator, TypeError: Cannot read property 'uniqueId' of undefined at Object.getUniqueID
Same issue here on ios simulator. The react linking is broken. Tried it with pods and it works.
Still seeing the same issue in 2019! Using the latest version on iOS simulator running OS 12.1.
The same issue... 😒
Anybody able to resolve it?
Could you open a new issue describing your exact setup and problem? I'm afraid commenting on a closed issue won't really help
Still crash in 10.12.0 in Android Emulator Weirdly, it works in 8.1.3