Skip to content

Commit

Permalink
Warn in case iAd or IDFA reading has been switched off
Browse files Browse the repository at this point in the history
  • Loading branch information
uerceg committed Mar 19, 2020
1 parent d47def2 commit 3235a98
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Adjust/ADJActivityHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ @implementation ADJActivityHandler
}

- (id)initWithConfig:(ADJConfig *)adjustConfig
savedPreLaunch:(ADJSavedPreLaunch *)savedPreLaunch
{
savedPreLaunch:(ADJSavedPreLaunch *)savedPreLaunch {
self = [super init];
if (self == nil) return nil;

Expand All @@ -137,6 +136,14 @@ - (id)initWithConfig:(ADJConfig *)adjustConfig
[ADJAdjustFactory.logger error:@"AdjustConfig not initialized correctly"];
return nil;
}

// check if ASA and IDFA tracking were switched off and warn just in case
if (adjustConfig.allowIdfaReading == NO) {
[ADJAdjustFactory.logger warn:@"IDFA reading has been switched off"];
}
if (adjustConfig.allowiAdInfoReading == NO) {
[ADJAdjustFactory.logger warn:@"iAd info reading has been switched off"];
}

self.adjustConfig = adjustConfig;
self.adjustDelegate = adjustConfig.delegate;
Expand Down

0 comments on commit 3235a98

Please sign in to comment.