Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reload] FR: alternate method of reloading #42

Closed
lorensr opened this issue Jan 26, 2015 · 4 comments
Closed

[Reload] FR: alternate method of reloading #42

lorensr opened this issue Jan 26, 2015 · 4 comments

Comments

@lorensr
Copy link
Contributor

lorensr commented Jan 26, 2015

I think a better user experience would be for the refresh to happen when the user leaves the app, like this:

window.addEventListener 'blur', ->
  # reload if new version available

(Occasionally doesn't fire until app is brought back to foreground.)

Also, think it would be good to distinguish in the readme that you don't mean the user has to quit the app, just leave it (send to background) and return:

http://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html#resume

@avital
Copy link

avital commented Jan 27, 2015

@avital
Copy link

avital commented Jan 27, 2015

Oh, your suggestion is to upgrade it on blur not only when you next run the app...

@stubailo
Copy link
Contributor

Yeah, this is hard to do because we can't be sure that the code replacement will finish before the app is shut down for good. We'll look into it, though!

@lorensr
Copy link
Contributor Author

lorensr commented Feb 27, 2016

Fixed by Meteor 1.3:

https://github.com/meteor/cordova-plugin-meteor-webapp

@lorensr lorensr closed this as completed Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants