admin管理员组

文章数量:1289529

I am trying to create a phone app that can receive incoming call notifications using CallKit, as described in Apple's CallKit documentation.

Added the com.apple.developer.calling-app entitlement in my .entitlements file. Implemented CXProvider and set up the delegate methods (provider:perform: and providerDidReset). Added UIBackgroundModes with voip in Info.plist. Configured CXProviderConfiguration to support phone numbers.

I expected to receive incoming call notifications when my app was set as the default calling app. However, I am not receiving any notifications when an incoming call arrives.

How can I properly detect and handle incoming calls in my default calling app? Is there any additional configuration required for iOS 18.2+?

I am trying to create a phone app that can receive incoming call notifications using CallKit, as described in Apple's CallKit documentation.

Added the com.apple.developer.calling-app entitlement in my .entitlements file. Implemented CXProvider and set up the delegate methods (provider:perform: and providerDidReset). Added UIBackgroundModes with voip in Info.plist. Configured CXProviderConfiguration to support phone numbers.

I expected to receive incoming call notifications when my app was set as the default calling app. However, I am not receiving any notifications when an incoming call arrives.

How can I properly detect and handle incoming calls in my default calling app? Is there any additional configuration required for iOS 18.2+?

Share Improve this question edited Feb 19 at 20:06 HangarRash 15k5 gold badges19 silver badges55 bronze badges asked Feb 19 at 20:05 Pushkar YadavPushkar Yadav 11 silver badge
Add a comment  | 

1 Answer 1

Reset to default 0

You have misunderstood the purpose of CallKit and making your app the default calling app.

CallKit allows VoIP apps to receive notifications and indicate incoming calls when terminated or the device is locked. It also allows them to integrate with the native calling UI and report missed calls in the consolidated call list.

Setting an app as the default calling app means that it is invoked to make outbound calls for "tel" uris or when the user taps a phone number, say in Maps or Safari. This enables the user to use a VoIP service rather than their cellular service when making calls.

There is no way that your app can be notified about incoming cellular calls. This is a privacy restriction.

本文标签: swiftHow to Get Incoming Call Notifications to Create a Phone App in iOS 182Stack Overflow