I have feature of disconnect the video/voice call when the application is in foreground/background/kill states. Same as Voice Call in WhatsApp application
I used Callkit to display default incoming CallKit screen will trigger using VOIP push.
Scenario:
- Device A calls to Device B
- Device A disconnects call
- Device B will disconnect in foreground not in background and kill states because DidReceiveRemoteNotification delegate method will triggers in only foreground not in other states
Tried with Silent Push Notifications Content-Available = 1 and removed the values in Alert key while sending push payload. Still it didn't worked in Background and Kill State
Now the question is How can we trigger DidReceiveRemoteNotification in all states Or Do we have any other concept to achieve this feature.
Please give your valuable suggestions and let me know if you need more information.