Message Center UI BizBundle

Last Updated on : 2023-05-22 06:38:29download

Message Center UI BizBundle provides the service logic of the message center that is supported by Tuya. The message center keeps the history of push notifications that are classified into alerts, home messages, and notifications. Alerts include device alerts and smart scene history.

On the message center settings page, users can enable or disable one or more push notifications. DND periods can be added for device alerts.

Integrate with the UI BizBundle

Create a project

Integrate Smart Life App SDK for Android into your project with Android Studio and add the framework of the UI BizBundle to your project.

Configure build.gradle of module

dependencies {
    api 'com.tuya.smart:tuyasmart-bizbundle-message:1.0.0-cube'
}

Navigate to an unresponsive URL

Follow the instructions in Integrate with Framework to get the unimplemented route and navigate to the target page.

Open message center

  • Before the call of any API method, make sure that the user has logged in to the app.
  • If the user status is changed, you must check the availability of the Message Center UI BizBundle to reload the message center page.
UrlRouter.execute(new UrlBuilder(MainActivity.this, "messageCenter"));