Clears cached latest session params when iOS application becomes inactive
MODIFY
ios/Branch-SDK/Branch-SDK/Branch.m
ios/Branch-SDK/Branch-SDK/Branch.m
@@ -1820,6 +1820,7 @@ static BOOL bnc_enableFingerprintIDInCrashlyticsReports = YES;
}
- (void)applicationWillResignActive {
+ [self clearSessionParams];
[self callClose];
[self.requestQueue persistImmediately];
[BranchOpenRequest setWaitNeededForOpenResponseLock];
@@ -1846,6 +1847,11 @@ static BOOL bnc_enableFingerprintIDInCrashlyticsReports = YES;
}
}
+- (void)clearSessionParams {
+ // Reset session params
+ self.preferenceHelper.sessionParams = nil;
+}
+
#pragma mark - Queue management
- (NSInteger) networkCount {

Clears cached latest session params when iOS application becomes inactive