Skip to content

Commit d08df6f

Browse files
authored
Fix resume called on app start (#526)
1 parent 2faa66c commit d08df6f

File tree

1 file changed

+3
-1
lines changed
  • LeanplumSDK/LeanplumSDK/Classes/Internal

1 file changed

+3
-1
lines changed

LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,9 @@ + (void)addUIApplicationObservers
11031103
//if they are changed the new valeus will be updated to server as well
11041104
[[Leanplum notificationsManager] updateNotificationSettings];
11051105

1106-
[Leanplum resume];
1106+
if ([Leanplum hasStarted]) {
1107+
[Leanplum resume];
1108+
}
11071109

11081110
// Used for push notifications iOS 9
11091111
[Leanplum notificationsManager].proxy.resumedTimeInterval = [[NSDate date] timeIntervalSince1970];

0 commit comments

Comments
 (0)