#Send sensor updates on location received

1 messages · Page 1 of 1 (latest)

glacial olive
#

Wouldn't that potentially create a loop when the include in sensor update option is on for single accurate location?

#

Also very battery intensive when using high accuracy mode

#

Would be interesting if it was possible to update only the geocode sensor 🤔

orchid igloo
orchid igloo
#

I dont know if we really need include in sensor updates for single accurate anymore, its an odd sensor

#

although we could just add a flag and just not update sensors when updating location from that sensor?

orchid igloo
glacial olive
orchid igloo
#

the issue then becomes the poll based sensors update less frequently

#

those sensors are more upto date when other sensors are updated frequently

#

at least for this sensor it feels like a special case

glacial olive
#

I'm not suggesting it should be used for all intent based sensors, but right now updating requires all sensors to be updated which might get out of hand

#

And for example the upcoming BLE scanner can also do very frequent updates

orchid igloo
#

yea that one is gonna send updates like crazy

glacial olive
#

So a more general solution for situations like these seems like a good idea to me

#

Instead of asking the user to choose between slower updates or a lot more battery usage

orchid igloo
#

in this case my thought was that we already sent a location update so we shoudl send a sensor update

#

but single acuratte will cause a loop in sendLocationUpdate

glacial olive
#

Or only do this if single accurate on sensor update is off? It is in the same SensorManager so not impossible to check

orchid igloo
orchid igloo
#

almost feels like it shoudlnt be that much of an impact as we are already awake sending updates every 5 seconds

glacial olive
#

I wonder if the app will be able to update all sensors in <5s on all devices

#

If only battery sensors are enabled it should be fine, but what if a lot more is on and it's a slower device?

orchid igloo
#

In this case it might make sense to update only this sensor with device tracker updates, if it's enabled of course.

#

I do see a lot of users comparing the data of this sensor to the device tracker, usually points to misconfigured sensors

glacial olive
orchid igloo
#

so now that this PR has been merged, I am wondering if the updateType for the sensor should be updated to intent or left as is because it only updates that fast if location tracking is enabled 🤔

glacial olive
#

It only updates instantly if you also have the location 'sensor' enabled

#

I don't think that's logic we can include in there?