WeChat Open Platform - Can the ios APP open WeChat and then jump to the specified URL through WeChat?
天蓬老师
天蓬老师 2017-05-17 10:06:24
0
1
1047

code show as below:

/**
 跳转到微信,并打开指定的URL

 @return <#return value description#>
 */
+(BOOL) openWeChat:(NSString *)url
{
    //wx0b577bb0399ff7d7
    NSString *headString = @"weixin://";
    
    headString =  [headString stringByAppendingString:url];
    BOOL canOpen = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"weixin:/"]];
    if(canOpen)
     //打开微信
    return [[UIApplication sharedApplication] openURL:[NSURL URLWithString:headString]];
        

    return FALSE;
}
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
仅有的幸福

It’s not feasible. Although WeChat has a scheme to open webview, it can only be used by some contracted users. You need to bring your appid

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template