-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix background poll and and finish it asap #1157
Comments
some numbers: on my iphone7, ios1.14.2, in the last 23½ h:
so, assuming an fetch with no data is not much more than one second, the 26 min can probably be reduced to a fragment - which, all in all, should get us a better reputation to be called more often (i do not expect to be called more than every 10 min, but there are phones with more apps where we are currently called less often) |
This issue should be postponed until multi-account is implemented |
after some discussions, we found out, that
|
just had a look, for the code, https://github.com/deltachat/deltachat-ios/pull/1221/files is still a pretty nice pattern. |
currently,
performFetchWithCompletionHandler
anddidReceiveRemoteNotification
let run the core IO for 10 seconds and terminate then.it would be better to terminate once a fetch on the imap folders INBOX and DeltaChat is done (there is some info-message, but no dedicated event, maybe core needs some adaptions) AND there are no more pending jobs (eg. sending messages out).
that way:
The text was updated successfully, but these errors were encountered: