后台openfire搭建服务,iOS端XMPPFramework实现客服聊天功能,MessageKit搭建聊天界面UI
-
将 JYXMPPFramework文件夹添加(拖放)到你的工程
-
启动聊天室,进入聊天页面
EdlXMPPManager.shareInstance.connect()
let vc = EdlChatUIViewController()
present(vc, animated: true, completion: nil)
- 需要修改成自己的参数的配置有
域名 KHostDomain
ip地址 KHostName
端口 KHostPort
标识 KResource
客服账号 KImSupport
账号 imUsername
密码 imPwd
聊天UI界面借用MessageKit库,如果有需要修改样式,了解相关属性请前往查看MessageKit~ ~
该库支持 iOS 9.0
及以上