无法在 iOS 13 中阻止 VoIP 呼叫? [英] Not possible to block VoIP calls in iOS 13?

查看:31
本文介绍了无法在 iOS 13 中阻止 VoIP 呼叫?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CallKit 的呼叫目录扩展可用于阻止标准电话呼叫.但是,如何在 iOS 13 上阻止 VoIP 呼叫?

CallKit's call directory extension can be used to block standard phone calls. However how is blocking a VoIP call supposed to work with iOS 13?

当有 VoIP 呼叫时,您的应用会收到 VoIP 推送,但现在在 iOS 13 中,Apple 强制要求应用在收到推送时必须调用 CXProvider.reportNewIncomingCall().

When there is a VoIP call your app receives a VoIP push, but now with iOS 13 Apple are mandating that when the push is received the app must call CXProvider.reportNewIncomingCall().

但是,当调用 reportNewIncomingCall() 时,操作系统会显示来电屏幕(与常规来电不同).显然无法抑制此呼叫屏幕,即使使用已注册为已被 CallKit 扩展阻止的数字的参数调用 reportNewIncomminCall(),呼叫屏幕仍会显示.

However when reportNewIncomingCall() is called, the OS displays an incoming call screen (which is not the same as for a regular incoming call). It is apparently not possible for this call screen to be suppressed, and even if reportNewIncomminCall() is invoked with a parameter which is a number which has been registered as blocked with the CallKit extension, the call screens still being displayed.

因此,应用程序似乎不可能提供阻止 VoIP 电话呼叫的功能(除非应用程序将其阻止号码列表发送到服务器,并且服务器不发送特定手机的推送对于被屏蔽的号码.但如果该应用程序安装在数十万或数百万部手机中,则在服务器端实施起来是一项艰巨的任务).

So it would seem it is impossible for an application to offer the ability to block a VoIP phone call (unless the app sends its list of blocked numbers to the server, and the server doesn't send the push for a particular handset for blocked numbers. But if the app is installed in hundreds of thousands or millions of handsets, that's a large undertaking on the server side to implement).

推荐答案

我与一位 Apple Voip 工程师有一些通信往来.Apple 预计,如果您需要阻止 VoIP 电话,那么您需要在服务器上执行此操作,而不是在手机上.

I had some correspondence with an Apple Voip engineer. Apple are expectingthat if you need to block Voip calls then you need to do it on the server, not the handset.

这篇关于无法在 iOS 13 中阻止 VoIP 呼叫?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆