Skip to content

Commit

Permalink
Merge pull request #1103 from OneSignal/remove_cold_restart_tracking
Browse files Browse the repository at this point in the history
Removing cold restart tracking
  • Loading branch information
emawby authored Jun 2, 2022
2 parents c9d37e4 + 453a0e5 commit f55808d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions iOS_SDK/OneSignalSDK/Source/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -1605,12 +1605,6 @@ + (BOOL)shouldRegisterNow {
const int minTimeThreshold = 30;
NSTimeInterval delta = now - lastTimeClosed;

// Tracking cold starts within 30 seconds of last close.
// Depending on the results of our tracking we will change this case
// from a tracking request to return true
if (delta < minTimeThreshold && appId && !_registerUserFinished && !_trackedColdRestart) {
[OneSignal trackColdRestart];
}
return delta >= minTimeThreshold;
}

Expand Down

0 comments on commit f55808d

Please sign in to comment.