Closed rolinger closed 7 years ago
Well, that feature uses a different Android API: AccountManager https://developer.android.com/reference/android/accounts/AccountManager.html It requires a new permission: GET_ACCOUNTS
This is not related to SIM. There is no reason to add this feature to sim plugin.
If you are not satisfied with DeviceInformationPlugin try this one: https://github.com/polychrom/cordova-android-accountmanager
Yeah, wasn't certain it was related. Closing this out and will refer to the one you mentioned. However, I am opening another issue on pulling sim info in a moment.
Expected behaviour
For Android (maybe windows), but I don't think possible on iOS, can email be extracted from sim info as well? This plugin manages to do it from Android but it has limiations and returns nothing on other devices: DeviceInformationPlugin
It might not be SIM specific but the info is pertinent and sim related, the above plugin states: E-mail/Phone number used by apps listed in your Settings > Accounts & Sync list
Actual behaviour
Tell us what happens instead. Provide a log message if relevant
I'm seeing this behaviour on
I am using
Hardware models
Example: Samsung Galaxy S6, iPhone 6s
OS versions
Example: Android 4.4.2, iOS 9.2
I've checked these
deviceready
to fire.window.onerror
catches nothing).So how can we reproduce this?
Provide the used components versions (cordova, ionic, etc).
Provide the steps to reproduce the issue.
Provide files, sources if available.