I don't know if it is a bug or feature by Apple. In the documentation:
system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.
As other StackOverflow questions are there this this showing the same.
In my case system relaunch the app in the background and run the code for storing in the database. How it can be possible? It call the method didFinishLaunchingWithOptions: then didReceiveRemoteNotification:
in background (Not shown in app switcher). But in the earlier versions, it not awake the application in background tested in iOS 12.2
I am sending payload for notification
"aps": {
"alert": {
"body": "",
"title": ""
},
"mutable-content": 0,
"category": "",
"badge": "",
"sound": "",
"content-available": 1
},
"data": {
//other fields
}
}