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

Request handling when the internet is choppy and the app goes in background #1120

Open
Ubaid81 opened this issue Jan 23, 2024 · 1 comment
Open
Assignees
Labels
package:cupertino_http Issues related to package:cupertino_http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@Ubaid81
Copy link

Ubaid81 commented Jan 23, 2024

If we made an API request and the application goes into the background while the response get more than 30 sec then we got an exception and the code only execute after we resume the app, however if the response comes in 30 sec then code execute in the background itself.

This only happens when the response time is high and the internet is choppy.

The timeout is set at 255 sec.

@Ubaid81 Ubaid81 added package:cupertino_http Issues related to package:cupertino_http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jan 23, 2024
@brianquinlan
Copy link
Collaborator

Did you try declaring background modes for your application: https://developer.apple.com/documentation/foundation/url_loading_system/downloading_files_in_the_background?language=objc

Maybe "fetch" would help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:cupertino_http Issues related to package:cupertino_http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants