The Device ID component can be integrated to the mPaaS in the native AAR mode and the component-based mode.
Prerequisites
Before you connect the component to the mPaaS based on native AAR mode, Add mPaaS to your project first.
If you want to connect the component to the mPaaS based on components, you need to first complete the Component-based integration procedure.
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);