Changes

Jump to: navigation, search

WebAPI/WebMobileConnection/Multi-SIM

884 bytes removed, 02:20, 25 September 2013
Use Case
And also you can get total number of service via
var numberOfServices = window.navigator.mozMobileConnections.length;
 
==== Get ICC Lock Status ====
 
*Current B2G (Single SIM)
var mobileConnection=window.navigator.mozMobileConnection;
var req = mobileConnection.getCardLock('pin');
 
*Multi-SIMs
 
// Get ICC lock status of default SIM slot.
var mobileConnection= window.navigator.mozMobileConnectionManager.defaultMobileConnection;
var req = mobileConnection.getCardLock('pin');
 
// Get ICC lock status of specific SIM slot.
var mobileConnection= window.navigator.mozMobileConnectionManager.mobileConnections[index];
var req = mobileConnection.getCardLock('pin');
 
==== SIM Toolkit ====
 
// Access STK of default SIM slot
var icc = window.navigator.mozMobileConnectionManager.defaultMobileConnection.icc;
 
// Access STK of specific SIM slot
var icc = window.navigator.mozMobileConnectionManager.MobileConnections[index].icc;
=== Implementation ===
Confirm
258
edits

Navigation menu