Difference between revisions of "CoreTelephony.framework"

From iPhone Development Wiki
Jump to: navigation, search
(Added notes about entitlements.)
 
Line 3: Line 3:
 
| since = 1.0
 
| since = 1.0
 
}}
 
}}
'''CoreTelephony''' is a public framework that manages telephony related tasks on iOS. It can be used as a frontend to communicate with CommCenter which talks to the baseband directly. The public portion is only a tiny part of the whole framework.
+
'''CoreTelephony''' is a public framework that manages telephony related tasks on iOS. It can be used as a frontend to communicate with [http://theiphonewiki.com/wiki//System/Library/Frameworks/CoreTelephony.Framework/Support/CommCenter CommCenter] which talks to the baseband directly. The public portion is only a tiny part of the whole framework.
  
  
== CTSettingCopyMyPhoneNumber ==
+
== iOS 7 Entitlements ==
 +
On iOS 7, Apple implemented additional security to ensure that applications cannot maliciously access a user's phone number. To do so, they have added the following entitlements:
  
On iOS 7 returns null.
+
* '''com.apple.coretelephony.Identity.get''': Needed to use the ''CTSettingCopyMyPhoneNumber'' or ''CTSettingCopyMyPhoneNumberExtended'' functions.
 +
* '''com.apple.coretelephony.Calls.allow'''
 +
* '''com.apple.coretelephony.CTVoiceSupport.allow'''
 +
* '''com.apple.coretelephony.CTCarrierSettings.allow'''
  
 
== CTSettingCopyMyPhoneNumberExtended ==
 
 
On iOS 7 returns:
 
{
 
  kCTSettingMyPhoneNumberEditable = 0;
 
  kCTSettingMyPhoneNumberExists = 0;
 
}
 
No error is output to the console and I tried every entitlement that MobileSMS has, however there still might be a different entitlement required.
 
  
 
{{Navbox Classes}}
 
{{Navbox Classes}}
 
{{Navbox Frameworks}}
 
{{Navbox Frameworks}}

Latest revision as of 20:42, 23 January 2014

CoreTelephony.framework
Public Framework
Availabile 1.0 – present

CoreTelephony is a public framework that manages telephony related tasks on iOS. It can be used as a frontend to communicate with CommCenter which talks to the baseband directly. The public portion is only a tiny part of the whole framework.


iOS 7 Entitlements

On iOS 7, Apple implemented additional security to ensure that applications cannot maliciously access a user's phone number. To do so, they have added the following entitlements:

  • com.apple.coretelephony.Identity.get: Needed to use the CTSettingCopyMyPhoneNumber or CTSettingCopyMyPhoneNumberExtended functions.
  • com.apple.coretelephony.Calls.allow
  • com.apple.coretelephony.CTVoiceSupport.allow
  • com.apple.coretelephony.CTCarrierSettings.allow