Skip to content

Commit

Permalink
Merge pull request #576 in MOBILE-SDK/app_mobile-sdk-ios from Hotfix_…
Browse files Browse the repository at this point in the history
…MS-4352_CachePolicy to master

* commit 'd17e4cb1be45d5f183038f7c277424ac214e0f3a':
  added the if logic and only removed the else part
  remove setting cache for the whole app
  • Loading branch information
Punnaghai Puviarasu committed May 26, 2020
2 parents 18e1037 + d17e4cb commit 43074a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sdk/sourcefiles/internal/ANAdFetcherBase.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ - (nonnull instancetype)init
{
self = [super init];
if (!self) { return nil; }

//
[self setup];

return self;
}

Expand Down Expand Up @@ -85,9 +84,7 @@ - (void)setup
{
if([ANGDPRSettings canAccessDeviceData]){
[NSHTTPCookieStorage sharedHTTPCookieStorage].cookieAcceptPolicy = NSHTTPCookieAcceptPolicyAlways;
} else {
[NSHTTPCookieStorage sharedHTTPCookieStorage].cookieAcceptPolicy = NSHTTPCookieAcceptPolicyNever;
}
}
}

-(void) stopAdLoad{
Expand Down

0 comments on commit 43074a8

Please sign in to comment.