Skip to content

Commit d8675ba

Browse files
Update sample code in IDFA tracking section (#2480)
Need to return `uuidstring` for `adSupportBlock` as it is looking for `String` and not `UUID` type.
1 parent ce92657 commit d8675ba

File tree

1 file changed

+1
-1
lines changed
  • src/connections/sources/catalog/libraries/mobile/ios

1 file changed

+1
-1
lines changed

src/connections/sources/catalog/libraries/mobile/ios/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ configuration.enableAdvertisingTracking = true
763763
// Set the block to be called when the advertisingID is needed
764764
// NOTE: In iOS 14, you'll need to manually do authorization elsewhere and only when it has been authorized, return the advertisingIdentifier to segment via the block below
765765
configuration.adSupportBlock = { () -> String in
766-
return ASIdentifierManager.shared().advertisingIdentifier
766+
return ASIdentifierManager.shared().advertisingIdentifier.uuidString
767767
}
768768
769769
Analytics.setup(with: configuration)

0 commit comments

Comments
 (0)