diff --git a/UserReport/UserReport/Models/UserReportUser.swift b/UserReport/UserReport/Models/UserReportUser.swift index 271c593..e72e2d5 100644 --- a/UserReport/UserReport/Models/UserReportUser.swift +++ b/UserReport/UserReport/Models/UserReportUser.swift @@ -41,6 +41,10 @@ public class UserReportUser: NSObject { @objc private func getAdvertisingId() -> String { var advertisingId: String = "" + if Bundle.main.object(forInfoDictionaryKey: "NSUserTrackingUsageDescription") == nil { + return advertisingId + } + if UserReport.shared?.anonymousTracking == true { return advertisingId }