index.swift
func didReceiveNewSession(_ session: QBRTCSession, userInfo: [String : String]? = nil) {
print("Receive")
let mainStoryboard = UIStoryboard(name: "Main", bundle: nil)
let goController = mainStoryboard.instantiateViewController(withIdentifier: "call") as! call
self.present(goController, animated: true)
}
If I'm in index.swift
and I receive session, print Receive
for me and go to call.swift
.
But if after load index.swift
I go to page.swift
, if receive session, print Receive
but don't go to call.swift
and stay on page.swift
.
I want if I'm anywhere after present
, go to call.swift