Skip to content

Commit

Permalink
Update the survey OS version to only include major version.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed Sep 11, 2024
1 parent dc04bd2 commit 47a31b9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ public struct DefaultRemoteMessagingSurveyURLBuilder: RemoteMessagingSurveyActio
queryItems.append(URLQueryItem(name: parameter.rawValue, value: variant))
}
case .osVersion:
queryItems.append(URLQueryItem(name: parameter.rawValue, value: AppVersion.shared.osVersion))
let os = ProcessInfo().operatingSystemVersion
let version = "\(os.majorVersion)"

queryItems.append(URLQueryItem(name: parameter.rawValue, value: version))
case .appVersion:
queryItems.append(URLQueryItem(name: parameter.rawValue, value: AppVersion.shared.versionAndBuildNumber))
case .hardwareModel:
Expand Down

0 comments on commit 47a31b9

Please sign in to comment.