Is there any way or package which I can use to detect to whether user is on WiFi or using cellular network.
Asked
Active
Viewed 458 times
1 Answers
2
You might want to try
const networkInformation = navigator.connection;
console.log(networkInformation);
For more info try https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection
Worth looking at Determine user's internet connection type via javascript or jquery as well.

Subhendu Kundu
- 3,618
- 6
- 26
- 57
-
So seems like there is no way to test this in production – Shubham Chopra Mar 06 '19 at 14:00