搜索
您的当前位置:首页正文

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

来源:二三娱乐
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推广网址  并用QQ登录
Top