Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushkit notification is not received if application is killed from background

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

like image 693
Megha Parmar Avatar asked Sep 13 '25 20:09

Megha Parmar


1 Answers

Possible your application is getting crashed when it is in killed state.

Check how to debug app in killed state.

enter image description here

https://github.com/hasyapanchasara/PushKit_SilentPushNotification

like image 137
Hasya Avatar answered Sep 15 '25 14:09

Hasya