微信分享 - 怎样在微信android客户端用自己的app打开自己分享的连接?
ringa_lee
ringa_lee 2017-04-17 12:04:11
0
2
745

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

ringa_lee
ringa_lee

ringa_lee

reply all(2)
伊谢尔伦

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.

迷茫

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

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