app wake QQ

First opened promoted through shang.qq.com

Android:

String 
url=”mqqwpa://im/chat?chat_type=wpa&uin=这里是QQ号&version=1&src_type=web&web_src=oicqzone.com”; 
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
mqqwpa: // im / chat chat_type = wpa & uin = Here is the QQ & version = 1 & src_type = web & web_src = oicqzone.com?

 

iOS:

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero]; 
NSURL *url = [NSURL 
URLWithString:@”mqq://im/chat?chat_type=wpa&uin=这里是QQ号&version=1&src_type=web&web_src=oicqzone.com”]; 
NSURLRequest *request = [NSURLRequest requestWithURL:url]; 
webView.delegate = self; [webView loadRequest:request]; [self.view 
addSubview:webView];
mqq: // im / chat chat_type = wpa & uin = Here is the QQ & version = 1 & src_type = web & web_src = oicqzone.com?

Guess you like

Origin www.cnblogs.com/hcpzhe/p/11023501.html
qq