Skip to content

Commit 64ecfb5

Browse files
committed
Close the doors for setDeviceToken and trackEvent if isGdprForgotten
1 parent 7506af4 commit 64ecfb5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Adjust/ADJActivityHandler.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ - (void)eventI:(ADJActivityHandler *)selfI
882882
if (![selfI isEnabledI:selfI]) return;
883883
if (![selfI checkEventI:selfI event:event]) return;
884884
if (![selfI checkTransactionIdI:selfI transactionId:event.transactionId]) return;
885+
if (selfI.activityState.isGdprForgotten) { return; }
885886

886887
double now = [NSDate.date timeIntervalSince1970];
887888

@@ -1320,6 +1321,9 @@ - (void)setDeviceTokenI:(ADJActivityHandler *)selfI
13201321
if (!selfI.activityState) {
13211322
return;
13221323
}
1324+
if (selfI.activityState.isGdprForgotten) {
1325+
return;
1326+
}
13231327

13241328
NSString *deviceTokenString = [ADJUtil convertDeviceToken:deviceToken];
13251329

0 commit comments

Comments
 (0)