This plugin defines window.CellInfo
object, which adds methods for getting
primary and neighboring cell information as well as network type.
{
'cid': Number, // cell ID in GSM
'lac': Number, // LAC in GSM
'psc': Number, // primary scrambling code for UMTS, -1 for GSM
'networkType': String, // network type string, e.g. 'GSM' or 'UMTS'
'generalNetworkType': String, // general network type: '2G', '3G, '4G', 'CDMA' or 'Unknown'
'rssi': Number // received signal strength in dBm
}
window.CellInfo.getNeighboringCellInfo(success: Function, error: Function)
- returns list of CellInfoData objectswindow.CellInfo.getPrimaryCellInfo(success: Function, error: Function)
- returns CellInfoData object
window.CellInfo.isAvailable
- true if current platform is supported, false otherwise
- Android
API level 7+ supported.
Requires ACCESS_COARSE_LOCATION
permission.