android icon indicating copy to clipboard operation
android copied to clipboard

Change monitoring mode based on location

Open Outlet2048 opened this issue 5 years ago • 1 comments

I was wondering if it would be possible to define certain areas by geofencing as for example home or work. In these areas Owntracks would then switch from move monitoring mode to another mode that is a bit more energy efficient. Or for example reduce the number of GPS requests per minute. These changes would then have to be automatically undone as soon as the area is left

At the moment this is done by Tasker, but maybe a separate solution in the app would be more practical and flexible

  • App build number: 2.2.1
  • Android version: 10
  • Device: Oneplus 6

Outlet2048 avatar Dec 08 '20 22:12 Outlet2048

It's an interesting idea, but I would worry about the complexity of both the implementation and the UX. What we're potentially talking about is building a rules engine that could twiddle the configuration based on certain events, along with adding actual rules to each event type (enters region "x", leaves region "x" etc.) The issue I'd have with your proposol of "change something on enter a region, revert it on exit" is that we'd basically have to maintain two config states in order to allow the exit change to happen. This would open up a whole load of interesting edge cases: What if the user manually changes the mode whilst they're in a region? Should it still revert the mode on exit? What if there's a remote configuration change whilst in a region? Should this logic only apply to the current user? What about other contacts entering / exiting a region? etc. etc.

The potential for inadvertently doing something surprising and confusing is pretty high, so if we wanted to look at this sort of functionality, the design would have to be carefully thought about. Not to mention that we're trying to keep feature parity with iOS, so anything we did here would also need to be able to be implemented on the iOS app.

I'm not against this, but would want to sit and think about some of these for a bit.

growse avatar Dec 09 '20 17:12 growse