In my iPhone APP
tappedButton(){
if let validSession = self.session, validSession.isReachable {//5.1
let data: [String: Any] = ["iPhone": User_permitions.id! as Any] // Create your Dictionay as per uses
let dataQR: [String: Any] = ["QRPath": User_permitions.personal_OR_path! as Any]
let datauserid: [String: Any] = ["userid": User_permitions.personal_ID! as Any]
let datausername: [String: Any] = ["username": User_permitions.name! as Any]
let datausersurname: [String: Any] = ["usersurname": User_permitions.surname! as Any]
let datausermail: [String: Any] = ["usermail": User_permitions.eamil! as Any]
let datauserphone: [String: Any] = ["userphone": User_permitions.phone! as Any]
//validSession.transferUserInfo(data)
// validSession.transferUserInfo(dataQR)
validSession.sendMessage(data, replyHandler: nil, errorHandler: nil)
validSession.sendMessage(dataQR, replyHandler: nil, errorHandler: nil)
validSession.sendMessage(datauserid, replyHandler: nil, errorHandler: nil)
validSession.sendMessage(datausername, replyHandler: nil, errorHandler: nil)
validSession.sendMessage(datausersurname, replyHandler: nil, errorHandler: nil)
validSession.sendMessage(datausermail, replyHandler: nil, errorHandler: nil)
validSession.sendMessage(datauserphone, replyHandler: nil, errorHandler: nil)
}
}