From 74d4c2535f7b1914b30922c33ff682f86e3ccbdf Mon Sep 17 00:00:00 2001 From: Daniel Jilg Date: Fri, 8 Sep 2023 10:46:12 +0200 Subject: [PATCH] Allow visionOS to use identifierForVendor (#119) * Allow visionOS to use identifierForVendor * Use xrOS instead of visionOS --- Sources/TelemetryClient/SignalManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TelemetryClient/SignalManager.swift b/Sources/TelemetryClient/SignalManager.swift index 37ac4c6..f0c9de5 100644 --- a/Sources/TelemetryClient/SignalManager.swift +++ b/Sources/TelemetryClient/SignalManager.swift @@ -203,7 +203,7 @@ private extension SignalManager { var defaultUserIdentifier: String { guard configuration.defaultUser == nil else { return configuration.defaultUser! } - #if os(iOS) || os(tvOS) + #if os(iOS) || os(tvOS) || os(xrOS) return UIDevice.current.identifierForVendor?.uuidString ?? "unknown user \(DefaultSignalPayload.systemVersion) \(DefaultSignalPayload.buildNumber)" #elseif os(watchOS) if #available(watchOS 6.2, *) {