From 56caae019cfd22ff2878b8bf481e19965360c456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Mon, 19 Feb 2018 02:10:56 +0100 Subject: [PATCH] proxy server: add push notification ttl --- src/dht_proxy_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp index 25bf08d9..a662f4d4 100644 --- a/src/dht_proxy_server.cpp +++ b/src/dht_proxy_server.cpp @@ -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;