In iOS, how to detect from Javascript (web) a device connected via 3G or Wi-Fi?

On iOS on the Internet, I would like to discover from Javascript whether the device is connected via 3G or Wi-Fi?

On Android, this information is available through navigator.connection.type . Is this information available on iOS (iPad / iPhone)?

See How do you detect a 3G connection against Wi-Fi on a mobile safari?

+6
source share
2 answers

You can not. iOS does not support this natively. To do this, you need to use a framework such as PhoneGap.

+3
source

You can call the IOS source code from javascript, which is looking for connectivity in the API API, and return the value in Javascript ..

0
source

Source: https://habr.com/ru/post/908820/


All Articles