Skip to content

Commit 38e086b

Browse files
committed
Fixes major issue on the request callback not sending the proper status code
1 parent 1d27467 commit 38e086b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.lupidan.unity-apptrackingtransparency/Runtime/Native/Ios/NativeAppTrackingTransparencyManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ - (void) initiateTrackingAuthorizationRequestWithRequestId:(uint)requestId {
5454

5555
}
5656

57-
- (void) handleTrackingAuthorizationRequestResult:(uint)rawAuthorizationRequest forRequestId:(uint)requestId {
57+
- (void) handleTrackingAuthorizationRequestResult:(uint)rawStatus forRequestId:(uint)requestId {
5858
if ([self callingOperationQueue]) {
5959
[[self callingOperationQueue] addOperationWithBlock:^{
6060
if ([self requestTrackingAuthorizationCallback] != NULL) {
61-
[self requestTrackingAuthorizationCallback](requestId, requestId);
61+
[self requestTrackingAuthorizationCallback](requestId, rawStatus);
6262
}
6363
}];
6464
} else {
6565
if ([self requestTrackingAuthorizationCallback] != NULL) {
66-
[self requestTrackingAuthorizationCallback](requestId, requestId);
66+
[self requestTrackingAuthorizationCallback](requestId, rawStatus);
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)