proxy server: add push notification ttl

This commit is contained in:
Adrien Béraud committed 2018-02-19 02:10:56 +01:00
1 parent f5afcbf62b
commit 56caae019c
1 file changed
+1
+1
View File
@@ -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;