The Device ID component can be integrated to the mPaaS in the native AAR mode, the mPaaS Inside mode, and the component-based mode.
Before you begin
- 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 the mPaaS Inside mode, you need to first complete the mPaaS Inside access procedure.
- If you want to connect the component to the mPaaS based on components, you need to first complete the Component-based access 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.
mPaaS Inside mode
In your project, install the Device ID component on the Component Management page.
For more information, see Manage component dependencies.
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);