if let conversationVC = storyboard.instantiateViewController(withIdentifier: "HomeViewController") as? HomeViewController {
// set the view controller as root
self.window?.rootViewController = conversationVC
}
Using this code to open view controller when app is killed and not in background. But on click of push notification banner app shows the LaunchScreen and closes automatically.