ios - How to get cellID in CTTelephonyNetworkInfo -


how can cellid value in cttelephonynetworkinfo? below code tried, still doesn't working.

cttelephonynetworkinfo *telephonyinfo = [[cttelephonynetworkinfo alloc] init]; nslog(@"cell id value : %@", [telephonyinfo cellid]); 

here cttelephonynetworkinfo header used references : https://github.com/nst/ios-runtime-headers/blob/master/frameworks/coretelephony.framework/cttelephonynetworkinfo.h

i did not plan submit app appstore. i'm building normal app not jailbreak app, want value using private api. thank in advance.

if work on jailbreak phone ,maybe can use below entitlement:

<key>com.apple.commcenter.fine-grained</key> <array>     <string>spi</string> </array> 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -