English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Preparation

Last Updated on : 2021-12-03 13:45:37download

This topic describes how to build an app based on Smart Residence App SDK on the Tuya IoT Development Platform, and get the values of AppKey and AppSecret and the security image of the App SDK.

Before you start

A developer account is registered on the Tuya IoT Development Platform and the account identity is verified.

Procedure

  1. Log in to the Tuya IoT Development Platform and go to the SDK Development page.
    Preparation

  2. In the dialog box that appears, select the Smart Residence App SDK category.

  3. Enter the required app information and click OK.

    • App Name: Enter a name for the app.
    • iOS Bundle ID: Enter your iOS app bundle ID. The recommended format is com.xxxxx.xxxxx.
    • Android Package Name: Enter your Android app package name. It is not necessary to be consistent with the iOS app bundle ID.
    • Channel ID: optional. If you do not set the value, the system automatically generates a channel ID according to the package name.
  4. Select SDK solutions as per your actual requirements, and integrate the SDK according to Podfile and Gradle. The Podfile and Gradle file will be created for the iOS SDK and Android SDK respectively.
    Preparation

  5. Get the key.
    Click the Get Key tab to get the values of AppKey and AppSecret and the security image of the App SDK.

    Preparation

Next steps

  1. After the app is created on the Tuya IoT Development Platform, you must provide the package name of the created app to Tuya’s account manager who will take care of the follow-up steps. The SDK can be normally used only after your app project is created in the cloud.
  2. For the app for Android, add one or more SHA256 hash values. For more information, see How to Get SHA1 and SHA256 Keys.

This allows you to call the SDK as expected.