Skip to content

Internet problem in background while using SDK 35 #60226

@furkanKotic

Description

@furkanKotic

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions