是否可以使用静音推送来唤醒 APP 并接听 VOIP 电话? [英] Is possible use silent push to wake up APP and get the VOIP call?

查看:42
本文介绍了是否可以使用静音推送来唤醒 APP 并接听 VOIP 电话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

if My app works at background, can I use silent push to wake app and get the VOIP call?

我使用jpush"发布了一个静默推送,它可以在将我的 idevice 与 Xcode 连接并运行 APP 时工作.

I used "jpush" to post a silent push which can work when connecting my idevice with Xcode and run APP.

如果我的设备没有用 Xcode 运行 APP,我就无法在后台接收静默推送(只能在前台接收.)

If my idevice doesn't run APP with Xcode, I can not receive the silent push at background (only receive at foreground.)

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

Is it possible to use silent push to wake up APP and get VOIP call?

我做错了吗??

推荐答案

是的.如果您的应用程序进行 VoIP 呼叫,则可以使用 PushKit:

Yes. If your application does VoIP calling then it's possible to use PushKit:

PushKit 框架将特定类型的通知(例如 VoIP 邀请、[...])直接发送到您的应用进行处理.[...]

Overview

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

UserNotifications 框架支持的用户通知不同,PushKit 通知从不显示向用户展示 - 他们不显示徽章、警报或声音.

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 通知具有以下优势:

PushKit notifications offer the following advantages over user notifications:

  • 如果您的应用未运行,系统会在收到通知后自动启动它.[...] 如需更多信息,请参阅本地和远程通知编程指南.
  • 您的应用有运行时间来处理通知,即使它在后台运行.
  • [...]

这篇关于是否可以使用静音推送来唤醒 APP 并接听 VOIP 电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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