All Products
Search
Document Center

Mobile Platform as a Service:Integrate Device ID into Android

Last Updated:Feb 24, 2023

The Device ID component can be integrated to the mPaaS in the native AAR mode and the component-based mode.

Prerequisites

Add the SDK

Native AAR mode

In your project, install the Device ID component on the Component Management (AAR) page. For more information, see AAR component management.

Component-based mode

In your Portal and Bundle projects, install the Device ID component on the Component Management page.

For more information, see Manage component dependencies.

Obtain device ID

UTDevice
/**
 *  Obtain the unique device ID. 
 *
 *
 *     @return Unique device ID 
 */
public static String getUtdid(Context context);