How can I get CellID, LAC and others device information?

I have a few question.


First. I wish to obtain information related to the base station.

For instance, CellID(cell tower id), LAC (location area code), MCC (Mobile Country code) and MNC(Mobile Network code)

Do you have an API that can be used in xcode?


If there is no api, either you can get the base station information by using the mdm profile?


Please tell me, How can I bring the base station information in mdm profile?


Thank you in advance.

Replies

iOS has very limited APIs for getting at cellular information. The APIs that do exist are part of the Core Telephony framework. Specifically, CTTelephonyNetworkInfo will tell your the radio technology in use (

currentRadioAccessTechnology
) and give you limited information about the subscriber (
subscriberCellularProvider
).

IMPORTANT:

subscriberCellularProvider
is, as the name suggests, about the subscriber, not about the current cell.

Everything else is off limits.

IMPORTANT If you search the ’net you’ll find lots of information about Core Telephony private APIs. Don’t go down that path. Regardless of App Review issues, sometime during the 8.x life cycle the sandbox was enhanced to block all of these private APIs.

Finally:

  • If you’re working on behalf of a carrier, you should talk to your carrier about your needs.

  • If you’re working with managed devices, much of this information is available via MDM. You should ask your MDM solution vendor about how you can access it from their management console.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi eskimo.

Thank you for your prompt reply.


We have been using the MDM services that your company provides.

(I belong to the MDM solution vendor.)

but, I couldn't find about CellID to MDM profile.

How can I get the information to MDM profile (cell id, lac, etc.)?


I would appreciate your telling any reference document you feel might be helpful for me.

(I belong to the MDM solution vendor.)

OK, good to know.

How can I get the information to MDM profile (cell id, lac, etc.)?

If it’s not listed in the current Mobile Device Management Protocol Reference then, AFAIK, it’s not available via MDM.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"