I have an application that executes a block of code immediately when it receives a push notification from the server. I have enabled the background modes in the application and it worked as expected in the background that is the app minimized mode. But in terminated state app receive push and calls
didReceiveRemoteNotification userInfo: fetchCompletionHandler completionHandler:
at the very first time. after that, if it receives another push it will not call the method. I have working with xcode: 9.1 ios: 11.2 swift: 4
push payload
{
registration_ids: to,
data: {
title : 'xxxxx',
notify_id : xxxxxx,
created_on : createdTime,
body: body
},
notification: {
title: 'xxxxxx',
body: body,
sound: 'xxxx.caf'
},
priority: 'High',
content_available: true
}
Please help.