How WeChat's JS-SDK works. Reverse engineering of jWeixin.
For all we known, WeChat is most popular social APP in China, and thousands of developers make thousands of interactive web pages depending on it's JS-SDK everyday.
But there is no detailed documentation about it's implementation, even a change log can't not be found, only a doc about how to use.
So I launch this project, for better known of how it works, and what have changed during it's iteration.
all .js
files would be named as \d.\d.\d
or \d.\d.\d.-annotated
, the nummeric-only ones stands for JS-SDK's original version, and ones with -annotated
suffix for none-uglified and annotated.
The latest version of WeChat's JS-SDK.
- consumeAndShareCard undocumented
- openEnterpriseRedPacket undocumented
- openEnterpriseChat undocumented
- startSearchBeacons
- stopSearchBeacons
- onSearchBeacons
- openAddress
iOS version loads local resources by callling wx.getLocalImageData, and Android should have native implementation for it.
WeChat would track your clientInfo when passing true to options.checktrue during wx.config.
Copyright (c) 2017 qiyuan-wang (AKA: zisasign) Licensed under the MIT license.