e-mission / e-mission-data-collection

Repository for our own data collection
BSD 3-Clause "New" or "Revised" License
4 stars 19 forks source link

Cache consented state? #122

Open shankari opened 8 years ago

shankari commented 8 years ago

We've cached the sensor config in the config manager, and we cache the consented state in the $rootScope in the javascript side. Maybe we should cache the consented state in the native data collection code as well.

Although it is only checked when an initialize transition is received, so it is not as critical as caching the config, which is used on an ongoing basis to detect when the trip should end, etc.