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

青春壹個敷衍的年華 提交于 2020-01-06 05:24:09

问题


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

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

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

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

Did I get something wrong??


回答1:


Yes. If your application does VoIP calling then it's possible to use 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.
  • [...]


来源:https://stackoverflow.com/questions/46580550/is-possible-use-silent-push-to-wake-up-app-and-get-the-voip-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!