Skip to content

[Request]: [connectivity_plus] Get network state regardless of internet connection #963

@c15yi

Description

@c15yi

Plugin

connectivity_plus

Use case

I would like to check, whether Wi-Fi is turned on or off. I don't care, if there is an internet connection available or not. Same for mobile data.

Currently when I have Wi-Fi enabled but it's not connected to any network, I get ConnectivityResult.none.

Proposal

I'd expect the Connectivity::checkConnectivity() method to return which hardware features (Wi-Fi, mobile data) are turned on and not through which hardware the internet connection is established.

Maybe another method would suite that use case better like

Future<List<ConnectivityResult>> getConnectivityHardwareStates()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions