Disconnect user when app goes to background and reconnect when back to foreground. Fixes #432

pull/440/head
Rodrigo Nascimento 11 years ago
parent 6fb54f7f48
commit 64bbb5d618
  1. 6
      client/lib/cordova/user-state.coffee

@ -0,0 +1,6 @@
if Meteor.isCordova
document.addEventListener 'pause', ->
Meteor.disconnect()
document.addEventListener 'resume', ->
Meteor.reconnect()
Loading…
Cancel
Save