Js determines whether the type of network connection is wifi or 3G 4G.

navigator.connection.type test found that it is not compatible, how to better achieve this function?

the client (Android, iOS) gets the network status and passes it to h5? Is this the best solution?

Mar.02,2021

js generally does not have the permission to read device information, so it is best for the client to get


is really not very compatible;
1. https://github.com/daniellmb/.
2. Or as you said, the client cooperates with


have you solved this problem? I now have the same problem that the navigator.connection method does not get the network type on the ios device.

Menu