getMoEngageDeviceId
Fetches unique ID generated by the MoEngage SDK.
Sample Usage
MoECoreHelper.getMoEngageDeviceId(context) { userInformation ->
// use userInformation.uniqueId to access the moengage device id
}Content copied to clipboard
Return
returns device id generated by the MoEngage SDK
Since
12.7.00
Parameters
context
instance of Context
listener
instance of OnDeviceIdAvailableListener
Throws
if the SDK is not initialized
Fetches unique ID generated by the MoEngage SDK.
Sample Usage
MoECoreHelper.getMoEngageDeviceId(context, appId) { userInformation ->
// use userInformation.uniqueId to access the moengage device id
}Content copied to clipboard
Return
returns device id generated by the MoEngage SDK
Since
12.7.00
Parameters
Throws
if the SDK is not initialised