Set Push.enabled and set push sendInterval to 1000ms and sendBatchSize to 10

pull/440/head
Rodrigo Nascimento 11 years ago
parent c3a5cb0c30
commit ea5bf14431
  1. 3
      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

Loading…
Cancel
Save