Swift-我可以使用Pushkit,但不要打电话吗?

发布于 2025-02-05 23:38:55 字数 136 浏览 4 评论 0 原文

作为标题,我只想收到一个VoIP消息,然后做点什么。

但是,似乎有必要在DidreceiveIncomingPushwith中进行reportnewincomingcall,这将使呼叫者场景出现。

我可以在呼叫显示之前取消通话吗?

As the title, I just want to receive a VoIP message, then do something.

But it seems to be necessary to do reportNewIncomingCall in didReceiveIncomingPushWith, and it will make the caller scene shows up.

Can I cancel the call before it shows up ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黎夕旧梦 2025-02-12 23:38:56

我可以在呼叫显示之前取消通话吗?

否。

通常,来自推送通知的任何计算都应出于安全目的通知用户。与仅唤醒通知扩展的正常推动相比,Pushkit醒来了主要的计算应用程序,它确实具有更多的限制,例如,Callkit UI必须显示给用户。

默认情况下,对于任何推送通知,无论VoIP或其他任何内容,都必须向用户提供通知。来自 com.apple.developer.user Notifications.Filtering 功能。

结果,隐藏通知并显示上述功能的 callkit 将需要Apple的额外许可。

但是,一种方法可以是一种无声的推动,但这仅限于

Can I cancel the call before it shows up?

No.

Generally, any computation from a push notification should inform the user for security purposes. As pushkit wakes up the main app for computation compared to the normal push which wakes only notification extension, it does have more restrictions, for example, callkit UI must be shown to the user.

By default, for any push notification regardless of VOIP or other, it must present a notification to the user. From apple doc, to suppress showing notifications when using pushkit you must have com.apple.developer.user notifications.filtering capabilities.

As a result, hiding notifications and showing callkit with the above-mentioned capability will require extra permission from apple.

However, one way can be a silent push, but that is limited to two or three per hour.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文