Is possible use silent push to wake up APP and get

2019-08-20 03:20发布

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条回答
2楼-- · 2019-08-20 03:45

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.
  • [...]
查看更多
登录 后发表回答