diff --git a/ios/CovidShield/CovidShield.m b/ios/CovidShield/CovidShield.m index 1d98ea1d8..cd39e94b4 100644 --- a/ios/CovidShield/CovidShield.m +++ b/ios/CovidShield/CovidShield.m @@ -27,7 +27,7 @@ @implementation CovidShield RCT_REMAP_METHOD(downloadDiagnosisKeysFile, downloadDiagnosisKeysFileWithURL:(NSString *)url WithResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { - NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]]; + NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration ephemeralSessionConfiguration]]; NSURL *taskURL = [RCTConvert NSURL:url]; [[session downloadTaskWithURL:taskURL completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) {