菜单

ATT 请求追踪授权

 

 

SolarEngine SDK封装了系统的requestTrackingAuthorizationWithCompletionHandler,使用SDK封装的ATT授权接口SDK能第一时间知道用户的授权状态,能优先上报带有IDFA的Install事件,能优化归因效率。

completion回调值 status对应iOS系统的ATTrackingManagerAuthorizationStatus

0: Not Determined;1: Restricted;2: Denied;3: Authorized ;999: system error

注:此接口只适用于iOS

代码示例

static void requestTrackingAuthorization(const FonRequestTrackingAuthorizationCallback& callback );

调用示例

USEAnalytics::requestTrackingAuthorization(
     FonRequestTrackingAuthorizationCallback::CreateLambda(
         [this](int32 code)
         {
             UE_LOG(LogTemp, Log, TEXT("[requestTrackingAuthorization] callback, code = %d"), code);
         }
     )
 );
最近修改: 2025-12-01Powered by