iOS add deviceId

This commit is contained in:
advplyr 2023-05-21 17:19:21 -05:00
parent 2c3dff3544
commit facf56930e
6 changed files with 90 additions and 74 deletions

View file

@ -44,6 +44,7 @@ class PlaybackSession: Object, Codable, Deletable {
}
}
return [
"deviceId": UIDevice.current.identifierForVendor?.uuidString,
"manufacturer": "Apple",
"model": modelCode,
"clientVersion": Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String

View file

@ -165,6 +165,7 @@ class ApiClient {
"forceTranscode": forceTranscode ? "1" : "",
"mediaPlayer": "AVPlayer",
"deviceInfo": [
"deviceId": UIDevice.current.identifierForVendor?.uuidString,
"manufacturer": "Apple",
"model": modelCode,
"clientVersion": Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String