补充
This commit is contained in:
@@ -124,6 +124,8 @@ public class AppContext extends CommonAppContext {
|
||||
private static final class AdjustLifecycleCallbacks implements ActivityLifecycleCallbacks {
|
||||
@Override
|
||||
public void onActivityResumed(@NonNull Activity activity) {
|
||||
Adjust.onResume();
|
||||
|
||||
Log.e("打招呼定时器", "onActivityResumed: " + activity);
|
||||
MessageChatNotifyManager.getInstance().restart(activity);
|
||||
if (activity instanceof LiveActivity) {
|
||||
@@ -175,6 +177,7 @@ public class AppContext extends CommonAppContext {
|
||||
|
||||
@Override
|
||||
public void onActivityPaused(@NonNull Activity activity) {
|
||||
Adjust.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -448,7 +451,7 @@ public class AppContext extends CommonAppContext {
|
||||
// FaceManager.initFaceUnity(this);
|
||||
//初始化Adjust
|
||||
String appToken = "d6m0zj5a3k00";
|
||||
String environment = AdjustConfig.ENVIRONMENT_SANDBOX;
|
||||
String environment = AdjustConfig.ENVIRONMENT_PRODUCTION;
|
||||
AdjustConfig config = new AdjustConfig(this, appToken, environment);
|
||||
config.setLogLevel(LogLevel.VERBOSE);
|
||||
Adjust.onCreate(config);
|
||||
|
||||
Reference in New Issue
Block a user