Skip to content

Commit

Permalink
Allow visionOS to use identifierForVendor (#119)
Browse files Browse the repository at this point in the history
* Allow visionOS to use identifierForVendor

* Use xrOS instead of visionOS
  • Loading branch information
winsmith authored Sep 8, 2023
1 parent 3b11f2d commit 74d4c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TelemetryClient/SignalManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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, *) {
Expand Down

0 comments on commit 74d4c25

Please sign in to comment.