Skip to main content

Sign-in with WeChat (Optional)

Pre-requisites

RainMaker China deployed (in the cn-north-1 region)

Create Developer Account

  1. Go to https://open.weixin.qq.com/
  2. Sign up for a verified enterprise account if not already registered.
  3. It requires a one time review feee (~300 RMB at the time this document was written).
  4. Detailed steps are as follows: https://developers.weixin.qq.com/doc/oplatform/en/Third-party_Platforms/2.0/operation/open/create.html
  5. Approval takes 3-5 business days.
  6. You would have the account ready like this:

WeChat Account

Create client in WeChat

App client

  1. You would need these details for Andoid:

WeChat App

note

You will have to provide the apk signer certificate MD5 digest.

  1. And for iOS:

WeChat App

note

You will need a universal link for the app. Refer these steps to create a universal link.

  1. App type: 工具-设备管理 (Tools-Device Management)
  2. Refer steps here: https://developers.weixin.qq.com/doc/oplatform/en/Third-party_Platforms/2.0/operation/open/create.html
  3. Approval takes 1-7 business days.
  4. At the end of the process, you will have an AppID and AppSecret.

Create provider in RainMaker

  1. Use the API. Refer example 'WeChat' and use the AppID and AppSecret from above.
  2. Create one provider for app with provider_type: WeChat

RainMaker phone app configuration

  • Verify the redirect URIs for both Android and iOS are added to Client. For more info check steps

Android

  • local.properties file:
    • isChinaRegion=true
    • isMatterSupported=false
  • AndroidManifest.xml file:
    • your_app_id=WeChat app id

iOS

Refer https://github.com/espressif/esp-rainmaker-ios/blob/master/RegionConfig.md

important

While calling the Token API please add flag wechat_token_only=true.

On this page