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

Set user as away when app goes to background and online when back to foreground

parent 64bbb5d6
No related branches found
No related tags found
No related merge requests found
if Meteor.isCordova
document.addEventListener 'pause', ->
Meteor.disconnect()
UserPresence.setAway()
document.addEventListener 'resume', ->
Meteor.reconnect()
\ No newline at end of file
UserPresence.setOnline()
\ 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