目录
此内容是否有帮助?

# Preset Properties

Preset Properties will have differences on different platforms, for details: Android, iOS.

# 1. Getting Preset Properties

If you need to use the preset properties of the client SDK when tracking events on the server, then you can use getPresetProperties to get these properties and upload them to the server.

-- get preset properties object
local presetProperties = ThinkingAnalyticsAPI.getPresetProperties()
--[[
   {
        "#carrier": "T-Mobile", -- information about operator of the SIM card. Operation information of the primary card should be got under dual-card dual-standby mode 
        "#os": "Android", -- device os name, e.g., Android, iOS
        "#device_id": "abb8e87bfb5ce66c", -- device ID
        "#screen_height": 2264, -- screen height
        "#screen_width": 1080, -- screen height
        "#bundle_id": "com.sw.thinkingdatademo", -- bundle ID
        "#manufacturer": "realme", -- device manufacturer, e.g. HuaWei
        "#device_model": "RMX1991", -- device model
        "#system_language": "zh", -- system language
        "#os_version": "10", -- os version
        "#network_type": "WIFI", -- network type
        "#zone_offset": 8, -- time zone offset
        "#app_version":"1.0" -- APP version
    }
]]--

IP, nation and city information are parsed and generated by the server. The client shall not provide the api to get such properties