From ea5bf14431f078d9715731a030eef142b72e5d62 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Tue, 11 Aug 2015 09:45:59 -0300 Subject: [PATCH] Set Push.enabled and set push sendInterval to 1000ms and sendBatchSize to 10 --- server/lib/cordova.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/lib/cordova.coffee b/server/lib/cordova.coffee index 92f80b83995..5a77144e340 100644 --- a/server/lib/cordova.coffee +++ b/server/lib/cordova.coffee @@ -7,6 +7,7 @@ Meteor.startup -> Push.debug = RocketChat.settings.get 'Push_debug' if RocketChat.settings.get('Push_enable') is true + Push.enabled = true Push.allow send: (userId, notification) -> return Meteor.users.findOne({_id: userId})?.admin is true @@ -26,3 +27,5 @@ Meteor.startup -> sound: true alert: true vibrate: true + sendInterval: 1000 + sendBatchSize: 10