Configure Discovery MiniApp

Last Updated on : 2024-08-29 02:15:16download

This topic describes how to configure the content discovery miniapp for your OEM app.

Step 1: Configure miniapp

Method 1: Configure miniapp as a bottom tab

To display the content discovery miniapp as a bottom tab in the app, perform the following steps:

  1. Log in to Tuya Developer Platform.

  2. On the App Creation page, find your app to configure. Click Configure in the Operation column of the app to enter the Configure App UI step.

    Configure Discovery MiniApp
  3. In the Configure App UI step, click Detailed Settings.

    Configure Discovery MiniApp
  4. In the left-side navigation pane, select Page > Manage Tab Page. Turn on the switch for Discover.

    Configure Discovery MiniApp

    If you have not activated this feature, a popup appears, as shown in the following figure. Click View in the popup to go to the Smart Home Content Manage service purchase page.

    Configure Discovery MiniApp
  5. Click Save in the top right corner, then exit.

  6. Re-publish the app to make the configuration effective.

    After completing the configuration, you must save the settings and publish your app before the configuration can take effect.

Method 2: Configure miniapp on Smart tab

You can also configure the miniapp on the Smart tab. For more information, see Smart MiniApp.

Step 2: Distribute miniapp to app

  1. Go to MiniApp Developer Platform and click Discovery.

    Configure Discovery MiniApp
  2. Select Distribution > Add App.

    Configure Discovery MiniApp Configure Discovery MiniApp

Step 3: Build demo backend and configure miniapp

  1. Log in to Tuya Developer Platform.

  2. Go to Build Online Demo to get the URL and account information of the content management backend.

    Configure Discovery MiniApp
  3. Use the generated account information to log in to Your Exclusive Demo.

  4. Select os-content > Column Manage, and select your app to create a column.

    Configure Discovery MiniApp
  5. You can create content for the column.

    Configure Discovery MiniApp

Step 4: Deploy content recommendation on homepage

  1. Log in to Tuya Developer Platform.

  2. On the App Creation page, find your app to configure. Click Configure in the Operation column of the app to enter the Configure App UI step.

    Configure Discovery MiniApp
  3. In the Configure App UI step, click Detailed Settings.

    Configure Discovery MiniApp
  4. In the left-side navigation pane, select Page > Home. Turn on the Content Card switch. This feature can be enabled only when the app is of the advanced edition, or the Custom App Tools service has been activated.

    Configure Discovery MiniApp
  5. When creating content, turn on the Home Recommend switch. Your content will appear in the recommendation section on the app’s homepage.

    Configure Discovery MiniApp