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

Log all events of push via server log

parent 7eae91b6
No related branches found
No related tags found
No related merge requests found
if Meteor.isCordova
Push.Configure {}
Push.addListener 'token', (token) ->
Meteor.call 'log', 'token', arguments
Push.addListener 'error', (err) ->
Meteor.call 'log', 'error', arguments
if error.type == 'apn.cordova'
Meteor.call 'log', err.error
Push.addListener 'register', (evt) ->
Meteor.call 'log', 'register', arguments
Push.addListener 'alert', (notification) ->
Meteor.call 'log', 'alert', arguments
Push.addListener 'sound', (notification) ->
Meteor.call 'log', 'sound', arguments
Push.addListener 'badge', (notification) ->
Meteor.call 'log', 'badge', arguments
Push.addListener 'startup', (notification) ->
Meteor.call 'log', 'startup', arguments
Push.addListener 'message', (notification) ->
Meteor.call 'log', 'message', arguments
\ No newline at end of file
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