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

about Updates.addListener #1

Closed
wangliguang opened this issue Nov 30, 2020 · 1 comment
Closed

about Updates.addListener #1

wangliguang opened this issue Nov 30, 2020 · 1 comment

Comments

@wangliguang
Copy link

I have two questions to ask? thank you very much

  1. Why not use it Updates.addListener?

  2. How to ensure that the new bundle is downloaded at the options.timeout time?

@Joshandrews43
Copy link
Owner

I have two questions to ask? thank you very much

  1. Why not use it Updates.addListener?
  2. How to ensure that the new bundle is downloaded at the options.timeout time?

I'm not sure if Updates.addListener works once the app is backgrounded, for a long time, as the OS may need to kill your process to free up memory. This is why I implemented it using AppState.

options.timeout is only used if you are updating on app launch if I am not mistaken. Since the function I create is async, once the updates are done downloading it will force the user to relaunch the app.

Feel free to make a pull request to add any additional features!

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

2 participants