TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Custom |
ReleasedLast Release | Feb 2017 |
Maintained by Yiming Tang.
The official WeChat SDK for iOS apps to access WeChat platform. This is a mirror repository maintained by iOS developers from Baixing.
To run the example project:
pod install
from the Example directory first.BXWeChatSDK.xcworkspace
.YOUR_WECAHT_APP_ID
with your WeChat app ID.BXAppDelegate.m
.Now, let's rock
BXWeChatSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BXWeChatSDK"
Then follow the instructions provided by Tencent.
Add the following lines to your project's info.plist file so that your app would be allowed to open WeChat.app.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>wechat</string>
<string>weixin</string>
</array>
Also, add WeChat domains to your app's whitelist.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>qq.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
<false/>
</dict>
</dict>
</dict>
Or if security is not an issue to your app, use the following lines.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>