Get device information (GetDeviceInfo)
Get information on the current device.
caution
If IDFA, XWID, or UAID data is retrieved via GetDeviceInfo, pay special attention to the following.
IDFA: Only to be used for in-app advertising and tracking/attribution.Any other use of IDFA (such as security analysis) is prohibited, as is using any other identifiers for advertising.
XWID:
- XWID must not be used with advertising ID.
- Low-risk usage scenarios: Can be used to track logged-out user preferences across applications with the same signature key and for anti-fraud purposes (using Android ID to limit the information scope to the same application signature key).
- If using XWID for new purposes, clearly disclose specific usage scenarios in the business ROP form and pass compliance review from the business side.
- If using XWID for new purposes, disclose and update in the privacy agreement.
UAID: An identifier generated by third-party UA platforms to identify the device, which requires compliance team review before use.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static FString GetDeviceInfo(const FString extra_json);
Parameter Explanation
| Name | Type | Explanation |
|---|---|---|
| extra_json | FString | Additional JSON string parameter |
Code Sample
FString deviceInfo=UINTLSDKAPI::GetDeviceInfo("");
Fstring extraJson = "{\"idfa\":1, \"xwid\":1, \"adjust_uaid\": 1, \"appsflyer_uaid\": 1, \"firebase_uaid\": 1, \"facebook_uaid\": 1}"; // IDFA (iOS side), XWID (all platforms), and UAID are sensitive data
FString deviceInfo2=UINTLSDKAPI::GetDeviceInfo(extraJson);
Return Value
Device information example:
{"comm_c_xwid":"92be4a32a74afc497ba4653dfcb7df09ec4e5gW4762f","comm_c_os":2,"comm_c_os_version":"15.4","comm_c_app_version":"1.0(1)","comm_c_device_model":"iPhone13,2","comm_c_bundle_id":"com.intlgame.demo","comm_c_carrier_id":"46002","comm_c_ram_total":3662,"comm_c_rom_total":244017,"comm_c_screen_width":1170,"comm_c_screen_height":2532,"comm_c_network_type": 2,"comm_c_cpu_name":"Apple","comm_c_cpu_core":6,"comm_c_cpu_freq":0,"comm_c_gpu_name":"Apple","comm_c_language":"zh", "comm_c_adjust_uaid":"xxxxx", "comm_c_appsflyer_uaid":"xxxxx", "comm_c_firebase_uaid":"xxxxx", "comm_c_facebook_uaid":"xxxxx"}
For an explanation of return parameters, see Player Network SDK Public Data Reporting Fields.