update session context before tracking a new session event

This commit is contained in:
Christoph Wendt 2015-09-04 15:47:02 -07:00
parent 95d8ee9aea
commit 27d5db6043

View File

@ -114,9 +114,8 @@ NSString *const kBITApplicationWasLaunched = @"BITApplicationWasLaunched";
[strongSelf.telemetryContext setSessionId:newSession.sessionId]; [strongSelf.telemetryContext setSessionId:newSession.sessionId];
[strongSelf.telemetryContext setIsFirstSession:newSession.isFirst]; [strongSelf.telemetryContext setIsFirstSession:newSession.isFirst];
[strongSelf.telemetryContext setIsNewSession:newSession.isNew]; [strongSelf.telemetryContext setIsNewSession:newSession.isNew];
[strongSelf trackSessionWithState:BITSessionState_start];
}); });
[self trackSessionWithState:BITSessionState_start];
} }
- (BITSession *)createNewSessionWithId:(NSString *)sessionId { - (BITSession *)createNewSessionWithId:(NSString *)sessionId {