1. Message Center BizBundle

1.1.1. Introduction

The message center business bundle provides the business logic of the message center of Tuya APP. The business functions mainly cover the push historical records of various types of messages, mainly including three categories of alarms, homes, and notifications. The alarms include device alarms, scene automation and other execution records. The setting page of the message center can enable or disable various types of message push. For alarm messages, it can support adding no-disturb periods to the device.

1.2. Biz Bundle integration

1.2.1. Create project

Create your project in Android Studio, connect to the public SDK and configure itFrame access

1.2.2. module's build.gradle configuration


dependencies {
    api 'com.tuya.smart:tuyasmart-bizbundle-message:3.22.0-6'
}

1.2.3. Jump to unimplemented routing address

Jumping to an implementation page via a route callback

1.3. Go To Message Center Page

  • Routing scheme
UrlRouter.execute(new UrlBuilder(MainActivity.this, "messageCenter"));

1.3.1. Attention

1.Make sure that the user is logged in before using any interface

2.When the login user changes, be sure to re-judge the Message Center availability status and re-acquire the Message Center page

3.To display the encrypted picture, FrescoManager.initFresco(this) must be called, and the initialization cannot be repeated, otherwise the picture cannot be decrypted

results matching ""

    No results matching ""