File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
iOS_SDK/OneSignalSDK/Source Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,11 @@ + (NSString *)mExternalIdAuthToken;
5050
5151@implementation OneSignalTracker
5252
53- static UIBackgroundTaskIdentifier focusBackgroundTask;
5453static NSTimeInterval lastOpenedTime;
5554static BOOL lastOnFocusWasToBackground = YES ;
5655
5756+ (void )resetLocals {
5857 [OSFocusTimeProcessorFactory resetUnsentActiveTime ];
59- focusBackgroundTask = 0 ;
6058 lastOpenedTime = 0 ;
6159 lastOnFocusWasToBackground = YES ;
6260}
@@ -65,17 +63,6 @@ + (void)setLastOpenedTime:(NSTimeInterval)lastOpened {
6563 lastOpenedTime = lastOpened;
6664}
6765
68- + (void )beginBackgroundFocusTask {
69- focusBackgroundTask = [[UIApplication sharedApplication ] beginBackgroundTaskWithExpirationHandler: ^{
70- [OneSignalTracker endBackgroundFocusTask ];
71- }];
72- }
73-
74- + (void )endBackgroundFocusTask {
75- [[UIApplication sharedApplication ] endBackgroundTask: focusBackgroundTask];
76- focusBackgroundTask = UIBackgroundTaskInvalid;
77- }
78-
7966+ (void )onFocus : (BOOL )toBackground {
8067 // return if the user has not granted privacy permissions
8168 if ([OSPrivacyConsentController requiresUserPrivacyConsent ])
You can’t perform that action at this time.
0 commit comments