From 453a0e5dafc28eb0240d68bc9c9ab7e7d103e5cd Mon Sep 17 00:00:00 2001 From: emawby Date: Thu, 2 Jun 2022 12:01:24 -0700 Subject: [PATCH] Removing cold restart tracking 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. --- iOS_SDK/OneSignalSDK/Source/OneSignal.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/iOS_SDK/OneSignalSDK/Source/OneSignal.m b/iOS_SDK/OneSignalSDK/Source/OneSignal.m index 2a52a088a..4561f7525 100755 --- a/iOS_SDK/OneSignalSDK/Source/OneSignal.m +++ b/iOS_SDK/OneSignalSDK/Source/OneSignal.m @@ -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; }