search

Home  >  Q&A  >  body text

WeChat Open Platform - Can the ios APP open WeChat and then jump to the specified URL through WeChat?

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;
}
天蓬老师天蓬老师2813 days ago1046

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-17 10:08:24

    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

    reply
    0
  • Cancelreply