Due to the privacy changes in Android 10, applications can no longer get IMEI numbers. You can read more about this and other privacy changes here.