gpt4 book ai didi

ios - 是否可以使用静默推送来唤醒APP并接听VOIP电话?

转载 作者:行者123 更新时间:2023-11-29 00:10:41 24 4
gpt4 key购买 nike

如果我的应用程序在后台运行,我可以使用静默推送来唤醒应用程序并接听 VOIP 电话吗?

我使用“jpush”发布静默推送,当我的设备与 Xcode 连接并运行 APP 时,它可以工作。

如果我的idevice没有用Xcode运行APP,我无法在后台收到静默推送(只能在前台收到。)

是否可以使用静音推送来唤醒APP并接听VOIP电话?

我是不是搞错了什么??

最佳答案

是的。如果您的应用程序进行 VoIP 调用,则可以使用 PushKit :

Overview

The PushKit framework sends specific types of notifications — such as VoIP invitations, [...] — directly to your app for processing. [...]

Unlike user notifications, which are supported by the UserNotifications framework, PushKit notifications are never presented to the user — they don't present badges, alerts, or sounds.

PushKit notifications offer the following advantages over user notifications:

  • If your app isn't running, the system automatically launches it upon receiving the notification. [...] For more information, see Local and Remote Notification Programming Guide.
  • Your app is given runtime to process the notification, even if it's running in the background.
  • [...]

关于ios - 是否可以使用静默推送来唤醒APP并接听VOIP电话?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46580550/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com