简体   繁体   中英

How to retrive cellular network information from XCode, iPhone?

Is there any APIs available in which can provide me with the following details:

  1. Signal Quality
  2. Country Code
  3. Network Code
  4. Area Code
  5. Cell ID
  6. Base Station ID
  7. GPRS Cell ID
  8. GPRS Base Station ID
  9. Signal Strength;
  10. Max Signal Strength

But what I need if it is not available to retrive Signal Strength in dbm

Note: I can get this information manually by dialing 3001#12345# as shown in the following screen shot from my iPhone (Signal Strength showed in the upper left corner in dbm):

https://picasaweb.google.com/lh/photo/Qf6MBY2jtfpWImTyTHk4Gg?feat=directlink

Apple has not officially provided any API to calculate the signal strength. But you can refer to official Core Telephony framework ( CTCarrier Class ) to get some of the details such as Country Code,Network Code etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM