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.

Answers


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>

Need Your Help

How to give style to iframed page content using parent pages css?

javascript jquery css xhtml iframe

How to style iframed page's content using parent pages css ? I don't have access of iframed page?

Android Application

java android multithreading

My question: I have successfully setup two Activities which are executing in their respective threads but the problem is I'm not able to put some delay in between these two threads i.e i need to ex...