forked from organicmaps/organicmaps
[iOS] send aloha id to catalog
https://jira.mail.ru/browse/MAPSME-11971
This commit is contained in:
parent
b6a67ba367
commit
d1cf07a2f8
3 changed files with 7 additions and 1 deletions
|
@ -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()])
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue