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

feat(background-http): Add request timeout configuration on iOS #607

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

insytes
Copy link
Contributor

@insytes insytes commented Dec 14, 2024

With the current version of the plugin there is no way to set the underlying timeout of the NSMutableURLRequest.timeoutInterval. The default is 60 seconds according to Apple.

In cases of poor/low signal and large file uploads we are seeing many failures whereby increasing the timeout may be helpful but is not possible.

This PR fixes #591 adds an optional timeout property to the request options and uses this value for the NSMutableURLRequest.timeoutInterval

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

Successfully merging this pull request may close these issues.

[@nativescript/background-http]: (iOS) No timeout option available to iOS NSURLRequest
1 participant