1

Is there any way or package which I can use to detect to whether user is on WiFi or using cellular network.

Shubham Chopra
  • 1,678
  • 17
  • 30

1 Answers1

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