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

Trigger download in background #401

Open
parim opened this issue Dec 11, 2017 · 1 comment
Open

Trigger download in background #401

parim opened this issue Dec 11, 2017 · 1 comment

Comments

@parim
Copy link

parim commented Dec 11, 2017

Recently, I was able to confirm the completed event in background.
#335
It looks great!
However, when I was trying download in background by receiving push notification, it didn't start downloading unless I open the app.
Is it possible to start download in background?

@mitevdev
Copy link

The problem is not in the library but the iOS. When your App receives push notification it runs for a very short time in main thread. All subsequent enqueued operations (not in main thread) are scheduled for later executions when the app become active. That's why the download in background performs only when you activate it again.

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