capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

@capacitor/network Detect granular changes in cellular connections

Open wwwizzarrdry opened this issue 2 years ago • 0 comments

Feature Request

Detect granular changes in cellular connections

Plugin

@capacitor/network

Description

My apologies as this belongs in a discussion, not a feature request per se, but they haven't enabled discussions for this repository yet.

Before I get too far into testing this plugin, I just wanted to know if the basic functionality will cover my use case.

Question: Is @capacitor/network capable of detecting granular changes in network status? Such as being connected to a cellular network that goes in and out of service?

Eg. ConnectionType: 'cellular.G, E, 2G, 3G, H, 4G, 5G, Roaming' It's pretty useless to know I'm connected to a network if I also don't get the corresponding data that informs me if the cellular connection can actually reach the Internet.

Perhaps I'm wrong, but, I assume in most cases that getting a connection status of true when the device has access to Emergency calls only is incorrect and should return false.

Platform(s)

Any

Preferred Solution

Retrieve the same, granular, connection information that the mobile platform has access to so we can handle real world network connectivity changes.

wwwizzarrdry avatar Jun 17 '22 17:06 wwwizzarrdry