Skip to content

Commit a842159

Browse files
committed
SDK-1747 also wrap apple attribution token as it's not available on macOS
1 parent 2f5969a commit a842159

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BranchSDK/BNCSystemObserver.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ + (NSString *)appleAttributionToken {
6363
__block NSString *token = nil;
6464

6565
#if !TARGET_OS_TV
66+
#if !TARGET_OS_MACCATALYST
6667
if (@available(iOS 14.3, *)) {
6768

6869
// We are getting reports on iOS 14.5 that this API can hang, adding a short timeout for now.
@@ -83,6 +84,7 @@ + (NSString *)appleAttributionToken {
8384
BNCLogDebug([NSString stringWithFormat:@"AppleAttributionToken request timed out"]);
8485
}
8586
}
87+
#endif
8688
#endif
8789

8890
return token;

0 commit comments

Comments
 (0)