Granting runtime permission to read device IMEI for Android 6.0


I was trying to read Device IMEI for an Android app by Ionic. I used the plugin “cordova-plugin-IMEI” and it worked well. But it cannot read IMEI of devices in Android 6.0 devices. I needed to allow permission for ‘phone’, manually after installing the apk. Any solution to allow the permission in code or how to ask for the permission in ionic?