How to get cellID in CTTelephonyNetworkInfo
how can I get cellId value in CTTelephonyNetworkInfo? Below is my code that i tried, but it still doesn't working.
CTTelephonyNetworkInfo *telephonyInfo = [[CTTelephonyNetworkInfo alloc] init]; NSLog(@"Cell ID Value : %@", [telephonyInfo cellID]);
Here is CTTelephonyNetworkInfo header that I used as references : https://github.com/nst/iOS-Runtime-Headers/blob/master/Frameworks/CoreTelephony.framework/CTTelephonyNetworkInfo.h
I DID NOT PLAN TO SUBMIT THIS APP TO APPSTORE. I'M BUILDING A NORMAL APP NOT JAILBREAK APP, BUT I WANT THIS VALUE USING PRIVATE API. THANK YOU IN ADVANCE.
If you work on a jailbreak phone ,maybe can use the below entitlement:
<key>com.apple.CommCenter.fine-grained</key> <array> <string>spi</string> </array>