mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
proxy server: add push notification ttl
This commit is contained in:
1 parent
f5afcbf62b
commit
56caae019c
1 file changed
+1
@@ -394,6 +394,7 @@ DhtProxyServer::sendPushNotification(const std::string& token, const Json::Value
|
||||
notification["platform"] = isAndroid ? 2 : 1;
|
||||
notification["data"] = json;
|
||||
notification["priority"] = "high";
|
||||
notification["time_to_live"] = 600;
|
||||
|
||||
Json::Value notifications(Json::arrayValue);
|
||||
notifications[0] = notification;
|
||||
|
||||
Reference in new issue
Block a user