Skip to content

Commit

Permalink
Fix resume called on app start (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzagorchev authored Oct 17, 2022
1 parent 2faa66c commit d08df6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,9 @@ + (void)addUIApplicationObservers
//if they are changed the new valeus will be updated to server as well
[[Leanplum notificationsManager] updateNotificationSettings];

[Leanplum resume];
if ([Leanplum hasStarted]) {
[Leanplum resume];
}

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

0 comments on commit d08df6f

Please sign in to comment.