Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

TM.Error when retrieving SIM info from a deactivated Android 6.x #62

Open
12 tasks
rolinger opened this issue Jun 13, 2017 · 0 comments
Open
12 tasks

TM.Error when retrieving SIM info from a deactivated Android 6.x #62

rolinger opened this issue Jun 13, 2017 · 0 comments

Comments

@rolinger
Copy link

Expected behaviour

simSerialNumber, countryCode and phoneNumber should return nothing.

Actual behaviour

The above values return TM.Error which throws an error in the Chrome Inspector Console when the SIM plugin attempts to retrieve those non-existent values (because the phone is no longer on a carrier network (it previously was on T-Moble)). Makes me wonder if this would also happen on an Android Tablet (assuming the tablet was not on a carrier network).

I'm seeing this behaviour on

  • iOS device
  • iOS simulator
  • [x ] Android device
  • Android emulator

I am using

  • [x ] cordova
  • [x ] ionic
  • PhoneGap
  • PhoneGap Developer App
  • Intel XDK
  • Intel App Preview
  • Telerik
  • Other:

Hardware models

Samsung Galaxy S5

OS versions

Android 6+

I've checked these

  • It happens on a fresh Cordova CLI project as well.
  • I'm waiting for deviceready to fire.
  • My JavaScript has no errors (window.onerror catches nothing).
  • [ x] I'm using the latest cordova library, Android SDK, Xcode, etc.

So how can we reproduce this?

I deactivated my Samsung Galaxy S5 and now use it to primarily run test code. The SIM plugin returns TM.Error when trying to retrieve the above values from a device that is no longer on a carrier network.

Provide the steps to reproduce the issue.

Provide files, sources if available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant