mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
proxyclient: add possibility to set the platform
This allow android to change the platform to "unifiedpush".
This commit is contained in:
1 parent
b9ccc968b2
commit
d6a99d0edd
9 files changed
+52
-6
No files matched your search
@@ -1325,13 +1325,8 @@ DhtProxyClient::getPushRequest(Json::Value& body) const
|
||||
body["key"] = deviceKey_;
|
||||
body["client_id"] = pushClientId_;
|
||||
body["session_id"] = pushSessionId_;
|
||||
#ifdef __ANDROID__
|
||||
body["platform"] = "android";
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
body["topic"] = notificationTopic_;
|
||||
body["platform"] = "ios";
|
||||
#endif
|
||||
body["platform"] = platform_;
|
||||
}
|
||||
|
||||
std::string
|
||||
|
||||
Reference in new issue
Block a user