cfug/dio

Network calls gets stuck on iOS 16.6+ and 17

Closed this issue · 1 comments

Package

dio

Version

5.5.0+1

Operating-System

iOS

Adapter

Default Dio

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.1 23B74 darwin-arm64, locale en-PK)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.92.0)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Dart Version

=3.4.3 <4.0.0

Steps to Reproduce

--

Expected Result

We've observed that some of our iOS users are experiencing issues where API calls get stuck and the app keeps loading indefinitely. Killing and reopening the app does not resolve the issue, and once one API call gets stuck, subsequent calls also fail. Changing the network does not help either. The only solution that works temporarily is uninstalling and reinstalling the app, but the problem eventually recurs. This issue is occurring in our production environment and has been reproduced on some of our devices as well.

Actual Result

Api should timeout incase of network issue so never stuck on loading

Given that you've intentionally not provided steps to reproduce, the issue is considered unactionable:

  1. The plugin has very little chance that it cannot work on such a wide range of devices, or you can find multiple issues telling the same behavior.
  2. We don't have anything that persists in network-related stuff the only thing about persistence is the cookie manager. So the behavior that the requests work after reinstalls typically means it's not related to the plugin.
  3. The most relevant cause that could be related to the plugin, reading from your description, is your interceptors might save some credentials and become invalid, which makes your requests unauthorized.

Closing as above.