-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
When using Android SDK 35 in a Flutter project, if there is any internet connection, all connections are cut off as soon as the application is put in the background. It acts as if the device's internet is turned off.
This problem does not occur on devices with SDK 34 and below.
To try it out, you can create a websocket connection and put the application in the background.
Dart version 3.7.0
Logs when put into background
I/flutter ( 3527): Error: ClientException with SocketException: Software caused connection abort (OS Error: Software caused connection abort, errno = 103), address = example.com, port = 41778, uri=https://example.com
I/flutter ( 3527): Error: ClientException with SocketException: Failed host lookup: 'example.com' (OS Error: No address associated with hostname, errno = 7), uri=https://example.com
I/flutter ( 3527): Error: ClientException with SocketException: Failed host lookup: 'example.com' (OS Error: No address associated with hostname, errno = 7), uri=https://example.com
It was said on the Flutter side that it might be related to Dart: flutter/flutter#164368
Metadata
Metadata
Assignees
Labels
No labels