1

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??

Victor
  • 109
  • 1
  • 2
  • 11

1 Answers1

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.
  • [...]
Community
  • 1
  • 1
David Rönnqvist
  • 56,267
  • 18
  • 167
  • 205
  • 1
    One other added benefit of pushkit is if you have force quit, still it would launch the app. – mfaani Oct 05 '17 at 10:11
  • Thanks a lot, I think I can't use APNS silent push to wake up APP, It's only receive at foreground. I will try PushKit to wake up APP. – Victor Oct 06 '17 at 03:05