I am using PKPushkit
for voip call notifications.
If my app is killed from background then I am unable to receive notification inside :
func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, forType type: PKPushType)
Though notification is working if app is in background. I have enabled following settings from project itself.
1) Inside capabilities , push notification is ON.
2) Background mode is on for:
a. App plays audio or streams audio/video using AirPlay.
b. App downloads content from the network.
c. App downloads content in response to push notifications.
d. App provides Voice over IP services.
Can any one help me to find out where I am missing ??
Possible your application is getting crashed when it is in killed state.
Check how to debug app in killed state.
https://github.com/hasyapanchasara/PushKit_SilentPushNotification