func userNotificationCenter(_ center: , didReceive response: , withCompletionHandler ) {
let userInfo = response.notification.request.content.userInfo
let userId = userInfo["user_id"] as? String
Вот тут типо взяли айди юзера чатик с которым мне надо открыть
let vc1 = UIStoryboard.initIdentifier("ChatID")
vc1.modalPresentationStyle = .fullScreen
let vc2 = UIStoryboard.initIdentifier("MessageID") as! MessageVC
vc2.id = userId
vc1.navigationController!.pushViewController(vc2, animated: true)
}