Notes for iOS client WeChat SDK session and circle of friends

Source: Internet
Author: User

Getting started with the official website: http://open.weixin.qq.com/document/gettingstart/ios /;

In fact, it is already very detailed. The following are my notes:

1. if "URL scheme" is not added to the Application id you have registered, "Return (NULL)" is returned when sending is completed, and the client is not automatically exited because the Application ID is configured, the program is automatically exited;

2. the source code of the official SDK Sample Demo needs to be debugged on the real machine, and the simulator has no response;

3. The development manual is very detailed. Share it with you and your friends:

// Req. scene = WXSceneTimeline; // select to send to the circle of friends. The default value is WXSceneSession, which is sent to the session

4. Check whether the isWXAppInstalled has been installed by the user + (BOOL). If YES is not installed, NO is returned. Determine whether the current version supports OpenApi

+ (BOOL) isWXAppSupportApi

5. sendReq :( BaseReq *)Req

Send the request to wait for onResp to be returned

The interface that will be switched to after the function is called. Third-party applications are waiting to return onResp. OnResp will be called after asynchronous processing is complete. Possible sending requests include SendMessageToWXReq and SendAuthReq.

Conversely, sendResp :( BaseResp *)Resp

Receive the onReq request, send the corresponding response to it, and switch to the interface

The interface that will be switched to after the function is called. A third-party application receives an onReq request and processes the request asynchronously. This function must be called after completion. GetMessageFromWXResp and ShowMessageFromWXResp may be sent.

6. For details about the sent Content Code, refer to the DEMO.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.