I suspect the answer is no, but I thought I would ask anyway. Is there a way to detect if a browser on a mobile device (for example Chrome on Android) is using WiFi or cell data to connect to the internet?
There's an API for that but it's not widely supported :
navigator.connection.addEventListener('typechange', function(){
console.log(navigator.connection.type);
});
https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API
But remember that this is experimental for now.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With