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

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

Open lasher23 opened this issue 2 years ago • 4 comments

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)

  • Android -> NetworkCapabilities
  • IOS -> not Sure about the available information
  • WEB -> The Network Information API is not widely supported yet

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 avatar Sep 22 '23 14:09 lasher23

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.

lasher23 avatar Oct 03 '23 14:10 lasher23

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

amanitequeen avatar Oct 13 '23 13:10 amanitequeen

I would love to see it done

michaelkariv avatar Nov 19 '23 18:11 michaelkariv

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.

Nowaha avatar Feb 21 '24 13:02 Nowaha