Check if location turned on or off

Possible to check if location is ON/OFF?

I try to check if already turn on before run GPS location/start geolocation poller.

If location == off

  • alert( please turn on your location first.)

else

  • do nothing…
1 Like