打开QQ会话
Android:
String url="mqqwpa://im/chat?chat_type=wpa&uin=123456";startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
iOS:
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];NSURL *url = [NSURL URLWithString"mqq://im/chat?chat_type=wpa&uin=123456&version=1&src_type=web"];NSURLRequest *request = [NSURLRequest requestWithURL:url];webView.delegate = self;[webView loadRequest:request];[self.view addSubview:webView];
浏览器:
<a target="_blank" href="http://img.xue163.com/wpa.qq.com/msgrd?v=3&uin=123456&site=qq&menu=yes">click here</a>
看了上面的帖子,在apicloud中怎么实现呢???
APICloud:
Android <a href="mqqwpa://im/chat?chat_type=wpa&uin=123456">click here</a>
iOS <a href="mqq://im/chat?chat_type=wpa&uin=123456&version=1&src_type=web">click here</a>
如果是群的话
<a href="mqqapi://card/show_pslcard?src_type=internal&version=1&uin=65895196&card_type=group&source=qrcode">和Qun聊天</a>