pbakondy / cordova-plugin-sim

:cherries: A cordova plugin to get the device's SIM data (carrier name, mcc mnc, country code, telephonenumber, etc)
MIT License
163 stars 101 forks source link

app can't access imei in android 10. #88

Closed yinglight closed 4 years ago

yinglight commented 4 years ago

app can't access imei number in android 10.Because the mechanism of Android 10 has changed.

mcendon commented 4 years ago

I found the same problem in my app with android 10.

This plugin has no maitenance since 3 years ago, i will try to fork it and adapt the plugin to support android api 29

mcendon commented 4 years ago

I found this: https://developer.android.com/about/versions/10/privacy/changes#non-resettable-device-ids It's necessary to declare a special permission to access "non-resetteable" data like SIM and IMEI in android 10. The only problem is that caution that advice: "Caution: Third-party apps installed from the Google Play Store cannot declare privileged permissions." So, i dont know if we can obtain that data in android 10... it will be a question of test it and see if it works

nyoumi commented 4 years ago

any solution?

pbakondy commented 4 years ago

https://developer.android.com/about/versions/10/privacy/changes

It will not work anymore