gpt4 book ai didi

android - AppsFlyer 集成在 Android 中启用/禁用跟踪未按预期工作?

转载 作者:行者123 更新时间:2023-11-30 00:39:10 27 4
gpt4 key购买 nike

我在我的应用程序中集成了 AppsFlyer。但无法根据我的要求激活和停用跟踪。例如在 facebook 中我们使用:
激活:

AppEventsLogger.activateApp(this);

并停用:

AppEventsLogger.deactivateApp(this);

在 AppsFlyer 教程中,给出了如何启用或禁用跟踪:

 AppsFlyerLib.setDeviceTrackingDisabled(true);


@Override
public void onResume() {
super.onResume();
AppsFlyerLib.onActivityResume(this);
}
@Override
public void onPause() {
super.onPause();
AppsFlyerLib.onActivityPause(this);
}

但是在我的代码中,它并没有采用这段代码。

 AppsFlyerLib.setDeviceTrackingDisabled

依赖使用:

 compile 'com.appsflyer:af-android-sdk:4.3.8@aar'

最佳答案

选择退出(又名 COPPA)从 4.7.0 开始可用(您使用 4.3.8)。最新安卓版本见HERE .

一旦您设置了 AppsFlyerLib.setDeviceTrackingDisabled(true); - 标志 deviceTrackingDisabled:true 将被发送到 AppsFlyer,数据将不会被存储。

关于android - AppsFlyer 集成在 Android 中启用/禁用跟踪未按预期工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42830009/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com