app唤醒QQ

先通过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=这里是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=这里是QQ号&version=1&src_type=web&web_src=oicqzone.com

posted @ 2019-06-14 15:26  Childhood Memory  阅读(1417)  评论(0编辑  收藏  举报