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 badge1 Answer
Reset to default 0You 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
版权声明:本文标题:swift - How to Get Incoming Call Notifications to Create a Phone App in iOS 18.2+? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741472233a2380673.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论