3

I am using Expo to build a React Native app I am using to onboard ios devices.

These are phones going to people who are not technically savy.

So I am building the mobile app to ideally pull the serial number from device info.

I do not see this as an option.

There use to be as I had an app that did something similar not to long ago.

How do I get the serial number?

Bnd10706
  • 1,933
  • 5
  • 24
  • 39

2 Answers2

1

For Expo IOS theres currently very limited options, since Apple forbids getting private device info.

If all you need is a device unique identifier we will need to create our own unique id see my answer here stackoverflow.

Morris S
  • 2,337
  • 25
  • 30
0

expo-application (info about the current app), expo-cellular (info about the cell data connection), expo-device (info about the device). There are some sensitive fields like the device’s IMEI that these modules do not attempt to expose.

I don't think you can get serial number due to privacy issues. You can try to use Notification which generates a unique device token. That can be used in your use-case

another solution is react-native-device-info - but you need to eject from expo to use it

Martin Dimitrov
  • 375
  • 4
  • 9