Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


This article needs a technical review. How you can help.

This API is available on Firefox OS for internal applications only.


The cardState is a read-only property that indicates the state of the device's ICC card.


var state = navigator.mozMobileConnection.cardState


Returns a string representing the ICC card's state. Possible values are:

  • unknown
  • absent
  • pinRequired
  • pukRequired
  • networkLocked
  • ready

This property can also be null.


Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, fscholz, MHasan, kscarfone, justinpotts, Sheppy, Jeremie
 Last updated by: chrisdavidmills,