search

Home  >  Q&A  >  body text

iOS跳转到非好友聊天界面

大神们跳转到非QQ好友发送消息一直失败

跳转代码

NSString *qqStr=[NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",@"564654144"];
NSURL *url = [NSURL URLWithString:qqStr];
[[UIApplication sharedApplication] openURL:url];




怪我咯怪我咯2771 days ago516

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-18 09:47:38

    First of all, public accounts cannot chat. In addition, if you are chatting with non-friends, the QQ account used to receive temporary messages must have the QQ promotion function enabled. Otherwise, strangers sending temporary messages to them will directly fail. Activation method: Open the QQ promotion website http://shang.qq.com and log in with QQ

    reply
    0
  • Cancelreply