GitHub user GitToTheHub added a comment to the discussion: Unable to Access IMEI or SIM Serial Number in Cordova 13 with Android 10+
Hi, this is a restriction by Android see: https://developer.android.com/about/versions/10/privacy/changes#non-resettable-device-ids. The solution is to use [Settings.Secure.ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID). See also: - [issue "unable to fetch IMEI number on android 10" in cordova-plugin-sim](https://github.com/pbakondy/cordova-plugin-sim) - [StackOverflow - TelephonyManager returns null for IMEI number: what can cause this?](https://stackoverflow.com/questions/35157444/telephonymanager-returns-null-for-imei-number-what-can-cause-this) GitHub link: https://github.com/apache/cordova/discussions/548#discussioncomment-13550351 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
