if the device’s locating mode is on high accuracy, than location sensors are working slowly.
step to reproduce:
- create the block like this
-
set the device’s locating mode to high accuracy, this is taking time(even the googleMap.OnLocationChange got the value faster than the location-sensor
-
Now set the device’s locating mode to Low Power Consumption . now if we look at the data location Sensor and googleMap.OnLocationChange got the value almost same time.
-
now set the device’s locating mode to Device Only, now if we check again both are taking long(almost same time) to get the lat/lng value.
High Accuracy use GPS, WI-FI, Bluetooth, or Mobile Network to determine location.
Low Power Consumption use WI-FI, Bluetooth, or Mobile Network to determine location.
Device Only use GPS to determing location.
This is the GPS which is taking time to get the location. It can be possible that not all the devices are facing the same issue. It can possible that googleMap avoid GPS at 1st attempt to create approx location. After receiving approx location its pushing GPS to get more accurate location. But this is not the case with our location-sensor.