Skip to content

Commit

Permalink
Removing cold restart tracking
Browse files Browse the repository at this point in the history
Once User Model is released we will use a new end point for getting IAMs, and our old SDK versions will still be gathering this data.
  • Loading branch information
emawby committed Jun 2, 2022
1 parent c9d37e4 commit 453a0e5
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 453a0e5

Please sign in to comment.