How whatsapp calling works, when the app is in background or even killed or even you are using other apps then also whatsapp call comes above your screen.
Can anyone please explain the mechanism behind it ?

- 2,164
- 1
- 20
- 25

- 217
- 1
- 11
-
2can anyone tell me why my question is getting downvote.. I think i asked a logical and possible question. – Ankit Oct 17 '16 at 12:24
-
1I think it got downvoted because it's something you can google yourself? – David Andrei Ned Oct 17 '16 at 13:07
-
[don't know if this helps] (http://www.makeuseof.com/tag/whatsapp-voice-call-everything-you-need-to-know/) – David Andrei Ned Oct 17 '16 at 13:08
-
Hello Ankit. Were you able to solve this. How to open even when app is in background/killed or using other app? – Arjun Mar 14 '21 at 10:55
2 Answers
This uses Voip permission,Hence even if the app was killed still able to receive the notifications

- 130
- 1
- 15
-
1
-
[Tutorial](https://zeropush.com/guide/guide-to-pushkit-and-voip) and [Apple Docs](https://developer.apple.com/library/content/documentation/Performance/Conceptual/EnergyGuide-iOS/OptimizeVoIP.html) – radkrish Oct 17 '16 at 11:17
In background or even killed state, they use Pushkit ( Silent push notification ).
Silent push notification doesn't come in device's notification center. but you can receive various information like username, image, VOIP channel etc.
Then you need to schedule local notification as per payload receiving in silent push notification.
Your app will be invoke in background upto your local notification sound file plays. ( Max 30 seconds ). if you want to repeat after 30 seconds then get another silent push notification or schedule local notification again.
While tapping on local notification or local notification button, you can redirect user to particular screen.
Let me know if you any further help in setting up for Pushkit or VOIP.

- 9,792
- 4
- 31
- 46
-
Please see the calling of whatsapp.. its call doesnt come on notification center only.. but it will come to your mobile phone... above all applications – Ankit Oct 17 '16 at 12:25
-
That is local notification only when getting calls while in other app. when you are in application then you can use different alert view controller or directly redirect to calling screen. – Hasya Oct 17 '16 at 12:36
-
Do have any idea on how to show local incoming call notification when device is locked. – Mansur Mar 06 '20 at 09:15