ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
529 stars 594 forks source link

Provide additional Network Connection Information like signal strength, upstream and downstream #1806

Open lasher23 opened 1 year ago

lasher23 commented 1 year ago

Feature Request

Get additional details on the network state, like signal strength, upstream and downstream.

Plugin

@capacitor/network

Description

I would like to get more information about the Network State. Currently we only have the connection type and connection status. It would be nice to get more available information. Sadly i am not sure about the possibilities on IOs, but on Android a lot of information is available on the NetworkCapabilities class. In Web we can take the information from the Network Information API.

Platform(s)

Preferred Solution

Add the additional Information to the ConnectionStatus interface

Alternatives

Just Relying on Connected or not connected. Or Implementing ping algorithms.

Additional Context

lasher23 commented 1 year ago

Can anybode help me with this issue? there is a Pull Request which implements the web and android part. I can not implement the IOS part.

amanitequeen commented 1 year ago

i'm VERY interested in this feature, though i can't do it myself

michaelkariv commented 11 months ago

I would love to see it done

Nowaha commented 8 months ago

Android definitely gives the signal strength information, it would be great to have at least that in Network too image

Web offers navigator.connection.effectiveType which is perfect, though it's not supported in all browsers, so that might be a problem.