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 scrabling 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 - returns list of CellInfoData objects
- window.CellInfo.getPrimaryCellInfo - returns CellInfoData object
- Android
API level 7+ supported.
Requires ACCESS_COARSE_LOCATION
permission.