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

Penalty of the background URLSession in the Main App #12

Closed
phil1995 opened this issue Dec 9, 2020 · 1 comment
Closed

Penalty of the background URLSession in the Main App #12

phil1995 opened this issue Dec 9, 2020 · 1 comment
Labels
type:dev-task Tasks that only affect the development
Milestone

Comments

@phil1995
Copy link
Collaborator

phil1995 commented Dec 9, 2020

Although Apple states in the documentation that the delay of the background URLSession is set to 0 when the app comes to the foreground:

The delay is reset to 0 whenever the user brings your app to the foreground. It also resets if the delay period elapses without the system resuming or relaunching your app.

The background URLSession in the main app in the foreground is penalized. See also: Apple Developer Forum, ownCloud Issue.

This does not affect the FileProvider.
Therefore it is probably necessary to use a foreground URLSession for the login to a CloudProvider account & the installation process of a Vault to reduce the delay. The authentication at GoogleDrive (via AppAuth) is also done with the default shared URLSession (foreground URLSession).

@tobihagemann tobihagemann added the type:dev-task Tasks that only affect the development label Dec 9, 2020
@tobihagemann tobihagemann added this to the 2.0.0-beta1 milestone Jul 2, 2021
@tobihagemann
Copy link
Member

Fixed in ff3f534 and 89df416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:dev-task Tasks that only affect the development
Projects
None yet
Development

No branches or pull requests

2 participants