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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39574-2c16a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39574-2c16a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?