core-telephony

After getting Cell Info, EXC_BAD_ACCESS is thrown

情到浓时终转凉″ 提交于 2019-12-10 23:06:10
问题 I'm using CellStumbler to obtain the iPhone's cell ID, location area code and other information. After calling getInfo, I'm getting an EXC_BAD_ACCESS and I can't figure out why. This is all undocumented private functions, but certainly someone can help. The problem isn't associated with any of the lines in the function, it's only after running it that it happens. Cell Stumbler I'm aware this isn't App Store approvable. int cellcount; _CTServerConnectionCellMonitorGetCellCount(&t1,sc,

How can I access call log history on IOS5

非 Y 不嫁゛ 提交于 2019-12-10 19:09:14
问题 I used FMDatabase and this path (/private/var/wireless/Library/CallHistory/call_history.db) to access the call logs on IOS4. After I updated to IOS5, it just gave me a "permission denied" exception. I know the call log file is there, just apple remove the permission. So I am thinking, is there anyway we can push the call log file to ICloud and take it back to our application? Or use CoreTelephony framework to get the CallID first, and use that ID to point somewhere and get the call detail

How to test EDGE or GPRS or any other slow/bad network

◇◆丶佛笑我妖孽 提交于 2019-12-10 10:43:04
问题 In my iOS app, I support to work online as well as offline. For this I have used Apple's Reachability code. Now I want to show user is offline if the cellular mobile network is EDGE or GPRS or bad/slow network. I have used the below code( Found solution ). Code: CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; NSLog(@"Current Radio Access Technology: %@", telephonyInfo.currentRadioAccessTechnology); [NSNotificationCenter.defaultCenter addObserverForName

why do serviceSubscriberCellularProviders return nil? (in iOS 12)

大城市里の小女人 提交于 2019-12-09 13:28:52
问题 Question about CTCarrier from CoreTelephony. I heard that I should use serviceSubscriberCellularProviders instead of subscriberCellularProvider in iOS 12 because subscriberCellularProvider would be deprecated. So I wrote following codes. import UIKit import CoreTelephony class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) let telephony = CTTelephonyNetworkInfo() if

How to get the Phone number from the callID(call Identifier) of call which returned form callcenter in iphone sdk?

佐手、 提交于 2019-12-08 00:57:54
问题 I had tried to get the call status and call Identifier of a call using coreTelephony.framework.And Need to get the phone number of the incoming call.Is it possible to get the phone number using the CallID.If so can anyone suggest me with sample code. Anyone's help will be deeply appreciated. Thanks to all, Monish. 回答1: callID is simply used to differentiate multiple active cellular calls. It is not possible to get the number from this. 回答2: you can not get phone number with call id by core

How can I get the callers phone number from an incoming call on iphone

♀尐吖头ヾ 提交于 2019-12-07 18:35:28
问题 Hi I want to build an app that does something when an incoming call comes in. But I think that the phone needs to be jailbroken on the iphone to access the class that does that. I want to do it without the phone being jailbroken. 回答1: Not possible. However you may get the information like call state(connected/disconnected etc) using CoreTelephony framework. 回答2: If you want to do anything when a call come or going then you have to use this code: CTCallCenter *callCenter; //make it ivar if you

How to get the Phone number from the callID(call Identifier) of call which returned form callcenter in iphone sdk?

限于喜欢 提交于 2019-12-06 10:41:46
I had tried to get the call status and call Identifier of a call using coreTelephony.framework.And Need to get the phone number of the incoming call.Is it possible to get the phone number using the CallID.If so can anyone suggest me with sample code. Anyone's help will be deeply appreciated. Thanks to all, Monish. callID is simply used to differentiate multiple active cellular calls. It is not possible to get the number from this. ios you can not get phone number with call id by core telephony frame work. But i know a way form which you can get phone number that is given in this question's

How to test EDGE or GPRS or any other slow/bad network

拜拜、爱过 提交于 2019-12-06 09:47:38
In my iOS app, I support to work online as well as offline. For this I have used Apple's Reachability code . Now I want to show user is offline if the cellular mobile network is EDGE or GPRS or bad/slow network. I have used the below code( Found solution ). Code: CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; NSLog(@"Current Radio Access Technology: %@", telephonyInfo.currentRadioAccessTechnology); [NSNotificationCenter.defaultCenter addObserverForName:CTRadioAccessTechnologyDidChangeNotification object:nil queue:nil usingBlock:^(NSNotification *note) { NSLog(@"New Radio

How to map MCC + MNC to users phone country code in iOS objective-C without using Location info?

谁说胖子不能爱 提交于 2019-12-06 08:48:01
I want the actual country code of the users phone number without prompting the user for Location Permission. How do I get it? Here is the code I use to get the MCC and MNC CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrier = [networkInfo subscriberCellularProvider]; NSString *mcc = [carrier mobileCountryCode]; NSString *mnc = [carrier mobileNetworkCode]; I get MCC - 310 and MNC - 410 which corresponds to AT&T USA. But what I want is '+1' the country code dialing for the user. Alternatively, Is it possible to do it with NSLocale? Try this NSLocale

How can I get the callers phone number from an incoming call on iphone

吃可爱长大的小学妹 提交于 2019-12-06 05:28:18
Hi I want to build an app that does something when an incoming call comes in. But I think that the phone needs to be jailbroken on the iphone to access the class that does that. I want to do it without the phone being jailbroken. Not possible. However you may get the information like call state(connected/disconnected etc) using CoreTelephony framework. ios If you want to do anything when a call come or going then you have to use this code: CTCallCenter *callCenter; //make it ivar if you are using ARC or handler will be auto-released... callCenter = [[CTCallCenter alloc] init]; callCenter