Commit 489ab3c7 authored by 朱璇's avatar 朱璇

修改 退到后台和进入前台的时间太短,导致重复埋点

parent cc7598e1
...@@ -187,7 +187,8 @@ static NSString *sdkVersion = @"110"; ...@@ -187,7 +187,8 @@ static NSString *sdkVersion = @"110";
phobosLog(@"handleAppInForeground"); phobosLog(@"handleAppInForeground");
[self handleSessionStart]; [self handleSessionStart];
[self handleEventDeviceOpened]; [self handleEventDeviceOpened];
[self fetchDataAndSend]; // 为了防止退到后台和进入前台的时间太短,导致重复埋点(猜测这行代码是为了防止退到后台后埋点失败加的?注释掉应该不会有影响,下次退到后台时 原有的数据并不会被删除)
// [self fetchDataAndSend];
[self handlePVEventAppInForeground]; [self handlePVEventAppInForeground];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment