diff --git a/Sources/Backup/Commands/OARegisterDeviceCommand.m b/Sources/Backup/Commands/OARegisterDeviceCommand.m index e62b24ef69..6084d6d90a 100644 --- a/Sources/Backup/Commands/OARegisterDeviceCommand.m +++ b/Sources/Backup/Commands/OARegisterDeviceCommand.m @@ -6,6 +6,8 @@ // Copyright © 2022 OsmAnd. All rights reserved. // +#import + #import "OARegisterDeviceCommand.h" #import "OABackupListeners.h" #import "OABackupHelper.h" @@ -13,6 +15,7 @@ #import "OANetworkUtilities.h" #import "OAAppSettings.h" #import "OAOperationLog.h" +#import "OAUtilities.h" #define kUserOperation @"Register device" @@ -50,6 +53,10 @@ - (void) main if (deviceId.length > 0) params[@"deviceid"] = deviceId; params[@"token"] = _token; + params[@"lang"] = [OAUtilities currentLang]; + UIDevice *device = [UIDevice currentDevice]; + params[@"brand"] = @"Apple"; + params[@"model"] = device.model; [OANetworkUtilities sendRequestWithUrl:OABackupHelper.DEVICE_REGISTER_URL params:params post:YES onComplete:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { int status; NSString *message;