Skip to content

Commit

Permalink
Merge pull request #3530 from osmandapp/rzr-lang-model
Browse files Browse the repository at this point in the history
Append lang/model to DEVICE_REGISTER_URL params
  • Loading branch information
alex-osm authored Mar 28, 2024
2 parents 23f376f + 5e8ca31 commit 02152f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Backup/Commands/OARegisterDeviceCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
// Copyright © 2022 OsmAnd. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "OARegisterDeviceCommand.h"
#import "OABackupListeners.h"
#import "OABackupHelper.h"
#import "OABackupError.h"
#import "OANetworkUtilities.h"
#import "OAAppSettings.h"
#import "OAOperationLog.h"
#import "OAUtilities.h"

#define kUserOperation @"Register device"

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 02152f7

Please sign in to comment.