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

[FEATURE] Request for email address from sim #36

Closed rolinger closed 7 years ago

rolinger commented 7 years ago

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

Example: Samsung Galaxy S6, iPhone 6s

OS versions

Example: Android 4.4.2, iOS 9.2

I've checked these

Provide the used components versions (cordova, ionic, etc).

Provide the steps to reproduce the issue.

Provide files, sources if available.

pbakondy commented 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

rolinger commented 7 years ago

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.