react-native-device-info icon indicating copy to clipboard operation
react-native-device-info copied to clipboard

Device info is not working in simulator

Open manju-ms opened this issue 8 years ago • 12 comments

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.

manju-ms avatar Aug 08 '18 10:08 manju-ms

Hi, could you give a little more information? "Is not working" doesn't really say anything..

machour avatar Aug 08 '18 10:08 machour

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.

manju-ms avatar Aug 08 '18 10:08 manju-ms

Could you try with 0.22.2? We changed the export method, that may be it

machour avatar Aug 08 '18 16:08 machour

After updating to 0.22.2 it is working fine. Thank you @machour.

manju-ms avatar Aug 13 '18 06:08 manju-ms

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

Radilx avatar Aug 28 '18 22:08 Radilx

Having similar issue as well in an emulator, TypeError: Cannot read property 'uniqueId' of undefined at Object.getUniqueID

jbrumwell avatar Oct 01 '18 02:10 jbrumwell

Same issue here on ios simulator. The react linking is broken. Tried it with pods and it works.

ventr1x avatar Oct 16 '18 07:10 ventr1x

Still seeing the same issue in 2019! Using the latest version on iOS simulator running OS 12.1.

degamer106 avatar Jan 16 '19 18:01 degamer106

The same issue... 😒

Senocico avatar Jan 25 '19 10:01 Senocico

Anybody able to resolve it?

AishwaryaSurana avatar Apr 25 '19 11:04 AishwaryaSurana

Could you open a new issue describing your exact setup and problem? I'm afraid commenting on a closed issue won't really help

machour avatar Apr 25 '19 11:04 machour

Still crash in 10.12.0 in Android Emulator Weirdly, it works in 8.1.3

deckyfx avatar Jan 11 '24 04:01 deckyfx