您的位置:首页 > 移动开发

APP内跳转QQ和陌生人聊天实现客服功能

2017-08-30 13:29 513 查看
NSString *qqNum = @"1234567";
NSString *qqStr=[NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",qqNum];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:qqStr]];

另:非好友聊天的话,用来接收临时消息的QQ号需开通 QQ推广功能 ,不然陌生人向他发送临时消息,直接失败。开通方式:打开QQ推广网址 [http://shang.qq.com](http://shang.qq.com/) 并用QQ登录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: