File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
LeanplumSDK/LeanplumSDK/Classes/Internal Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments