English
English
简体中文
Contact Us
Register
Log In

Configure Smart Miniapps

Last Updated on : 2023-09-15 09:10:59download

This topic describes how to configure smart miniapps on the Smart tab of your OEM app within a few simple steps. This helps to drive users to your app with a wide range of miniapp capabilities.

Step 1: Configure the Smart tab

Tuya provides the Smart tab on your OEM app to display and run your specified smart miniapps inside the app. The following figure shows an example of the Smart tab.

Configure Smart Miniapps

Requirements

  • To display the Smart tab on your OEM app, the OEM app template must be v4.2.0 or later.
  • After you configure the Smart tab, you must save and launch your app before the settings can take effect.

Procedure

  1. Log in to the Tuya IoT Development Platform.

  2. In the left-side navigation pane, go to App > OEM App > App Creation.

  3. Find the app to configure, click Configure in the Operation column, and then go to the Customize UI step.

  4. Go to App UI Style > Detailed Settings.

    Configure Smart Miniapps
  5. Select Page > Tab Icon > Add Bottom Tab Icon, and click Add for the Smart option.

    Configure Smart Miniapps
  6. Click Save > Exit in the top right corner of the page.

  7. Rebuild the app to make the settings take effect.

Step 2: Configure smart miniapps

Prerequisites

The Smart tab is configured for your OEM app as instructed in Step 1.

Procedure

To configure the smart miniapps that run inside your app, perform the following steps:

  1. Log in to the Tuya IoT Development Platform.

  2. In the left-side navigation pane, go to App > OEM App > Smart settings.

  3. Find the miniapp to be added to your app, and click Go to buy in the top right corner of the miniapp card to purchase this miniapp service.

    Configure Smart Miniapps
  4. After the service is purchased, return to the Smart settings page, and click Add it now for the miniapp to add the miniapp to the app. You can preview the result on the right.

  5. You can drag and drop the previewed miniapp to arrange its location on the app.

    Configure Smart Miniapps
  6. After all required miniapps are added to the Smart tab, click Save at the bottom of the Smart settings page.