Android SDK 4.x API

Updated at:

This document provides an API reference for Android SDK 4.x. All descriptions are for version 4.0.0.

First, integrate Android SDK 4.x. Then, use the following APIs as needed.

API directory

Document

Description

Basic configuration API (4.x)

Basic APIs for initialization, registration, device ID, push switch, logs, and notification permissions.

Advanced configuration API (4.x)

Advanced configuration and extension APIs for on-demand use.

Account management API (4.x)

Account binding and unbinding.

Tag management API (4.x)

Device tag binding, unbinding, and queries, and a comparison of API changes from 3.x to 4.x.

Alias management API (4.x)

Add, delete, and query aliases.

Self-built notification statistics reporting API (4.x)

Reporting statistics for self-built notifications.

SMS notification API (4.x)

Bind and unbind phone numbers for SMS notifications.

Message and notification handling API (4.x)

Handle incoming messages, notifications, and click callbacks.

Custom notification style API (4.x)

Configure and use custom notification styles.

Digital badge API (4.x)

APIs for managing app digital badges.

Integration and troubleshooting

Android SDK integration (4.x) covers the dependency, initialization, and registration process. Error handling (4.x) covers error callbacks and EMAS_PUSH logs. For 3.x applications, see the Android SDK 3.x API.