Skip to content
Snippets Groups Projects
Commit b3dbd537 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Configure push for Android

parent 069bda70
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ if Meteor.isCordova
Tracker.autorun ->
if RocketChat.settings.get('Push_enable') is true
Push.Configure
gcm:
projectNumber: RocketChat.settings.get 'Push_gcm_project_number'
badge: true
sound: true
alert: true
......
......@@ -41,3 +41,5 @@ Meteor.startup ->
RocketChat.settings.add 'Push_apn_dev_passphrase', '', { type: 'string', group: 'Push' }
RocketChat.settings.add 'Push_apn_dev_key', '', { type: 'string', multiline: true, group: 'Push' }
RocketChat.settings.add 'Push_apn_dev_cert', '', { type: 'string', multiline: true, group: 'Push' }
RocketChat.settings.add 'Push_gcm_api_key', '', { type: 'string', group: 'Push' }
RocketChat.settings.add 'Push_gcm_project_number', '', { type: 'string', group: 'Push', public: true }
......@@ -22,6 +22,9 @@ Meteor.startup ->
keyData: RocketChat.settings.get 'Push_apn_dev_key'
certData: RocketChat.settings.get 'Push_apn_dev_cert'
gateway: 'gateway.sandbox.push.apple.com'
gcm:
apiKey: RocketChat.settings.get 'Push_gcm_api_key'
projectNumber: RocketChat.settings.get 'Push_gcm_project_number'
production: RocketChat.settings.get 'Push_production'
badge: true
sound: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment