Home  >  Q&A  >  body text

微信分享 - 怎样在微信android客户端用自己的app打开自己分享的连接?

我的app分享了一个连接到微信,微信中点击这个分享链接,我希望能调用自己的app打开,然后获取链接里的参数。请问怎样实现?现在一点击链接就会跳到微信的浏览器。我尝试过自定义uri,但是在微信里不管用,在别的浏览器里是可以打开自己的app的。

ringa_leeringa_lee2764 days ago717

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 12:06:11

    What you are talking about is calling the custom url scheme to open the app. WeChat has a url scheme whitelist, and not all url schemes can be opened.

    reply
    0
  • 迷茫

    迷茫2017-04-17 12:06:11

    You can use WXAppExtendObject to implement callbacks to third-party apps, but you need to create a new package wxapi under the project package name, in which WXEntryActivity inherits Activity, implements IWXAPIEventHandler, rewrites onReq and onResp, and then handles the required jumps yourself,
    The configuration file can follow the WeChat documentation, but it seems that WXAppExtendObject is no longer supported recently, and we are now looking for a solution

    reply
    0
  • Cancelreply