[iOS] send aloha id to catalog

https://jira.mail.ru/browse/MAPSME-11971
This commit is contained in:
Aleksey Belouosv 2019-09-27 13:26:42 +03:00 committed by Aleksey Belousov
parent b6a67ba367
commit d1cf07a2f8
3 changed files with 7 additions and 1 deletions

View file

@ -255,7 +255,8 @@ final class CatalogWebViewController: WebViewController {
return
}
completion(["X-Mapsme-Bundle-Tiers" : encodedString])
completion(["X-Mapsme-Bundle-Tiers" : encodedString,
"X-Mapsme-Device-Id" : MWMBookmarksManager.shared().deviceId()])
})
}

View file

@ -115,6 +115,7 @@ typedef void (^PingCompletionBlock)(BOOL success);
- (BOOL)isGuide:(MWMMarkGroupID)groupId;
- (NSString *)getServerId:(MWMMarkGroupID)groupId;
- (NSString *)getGuidesIds;
- (NSString *)deviceId;
@end
NS_ASSUME_NONNULL_END

View file

@ -821,4 +821,8 @@ NSString * const CloudErrorToString(Cloud::SynchronizationResult result)
[[UIViewController topViewController] presentViewController:alert animated:YES completion:nil];
}
- (NSString *)deviceId {
return @(Purchase::GetDeviceId().c_str());
}
@end