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

Message Center UI BizBundle

Last Updated on : 2022-09-02 07:54:20download

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:4.2.0-22'
}

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"));