appsflyer.setHasUserConsent()

类型 函数
返回值
修订版 发行版 2024.3703
关键字 分析、归因、AppsFlyer、setHasUserConsent
另请参见 appsflyer.*

概述

AppsFlyer 使您能够匿名 AppsFlyer 分析中的特定用户标识符。这符合最新的隐私要求,并且符合 Facebook 数据和隐私政策。

语法

appsflyer.setHasUserConsent( Boolean )

示例

local appsflyer = require( "plugin.appsflyer" )

local function appsflyerListener( event )
    if event.phase == "init" then
        appsflyer.setHasUserConsent( true )
    end
end

-- Initialize plugin
appsflyer.init( appsflyerListener,
    {
        appID = "YOUR_APP_ID",
       devKey = "YOUR_DEV_KEY"
    }
)