Skip to content

Commit 0562e81

Browse files
committed
Merge branch 'master' of github.com:Leanplum/Leanplum-iOS-SDK into release/6.0.1
2 parents 366597e + e7db8b8 commit 0562e81

File tree

1 file changed

+10
-7
lines changed
  • LeanplumSDK/LeanplumSDK/Classes/Internal

1 file changed

+10
-7
lines changed

LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,8 @@ + (void)startWithUserId:(NSString *)userId
922922
}
923923

924924
if ([[MigrationManager shared] useLeanplum]) {
925+
// hasStarted and startSuccessful will be set from the request callbacks
926+
// triggerStartResponse will be called from the request callbacks
925927
[[LPRequestSender sharedInstance] send:request];
926928
[Leanplum triggerStartIssued];
927929
} else {
@@ -1089,17 +1091,18 @@ + (void)addUIApplicationObservers
10891091
//if they are changed the new valeus will be updated to server as well
10901092
[[Leanplum notificationsManager] updateNotificationSettings];
10911093

1094+
// Used for push notifications iOS 9
1095+
[Leanplum notificationsManager].proxy.resumedTimeInterval = [[NSDate date] timeIntervalSince1970];
1096+
10921097
if ([Leanplum hasStarted]) {
10931098
[Leanplum resume];
1099+
[self maybePerformActions:@[@"resume"]
1100+
withEventName:nil
1101+
withFilter:kLeanplumActionFilterAll
1102+
fromMessageId:nil
1103+
withContextualValues:nil];
10941104
}
10951105

1096-
// Used for push notifications iOS 9
1097-
[Leanplum notificationsManager].proxy.resumedTimeInterval = [[NSDate date] timeIntervalSince1970];
1098-
[self maybePerformActions:@[@"resume"]
1099-
withEventName:nil
1100-
withFilter:kLeanplumActionFilterAll
1101-
fromMessageId:nil
1102-
withContextualValues:nil];
11031106
LP_END_TRY
11041107
}];
11051108

0 commit comments

Comments
 (0)