proxyclient: add possibility to set the platform

This allow android to change the platform to "unifiedpush".
This commit is contained in:
Sébastien Blin authored and Adrien Béraud committed 2022-11-17 11:46:09 -05:00
1 parent b9ccc968b2
commit d6a99d0edd
9 files changed
+52 -6

No files matched your search

+1 -6
View File
@@ -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