Here is notification payload:
{
"aps": {
"content-available": "1"
}, "data": {
"ct_typ": "1",
"imp": "0",
"msg_id": "1532071410494",
"msg_typ": "0",
"user_id": "11136cb83e"
}}
Following method I used and get notification in background mode but this method is not working in Not Running(Kill Mode).
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {}
I am working with XMPP and i need to reply delivered message on Not Running(kill mode).