Update
As promised I introduced automatic start/stop of activities.
Default actions
In Settings / Checkins I added the following fields:
The following options are available for actions:
- no action (nothing happens when you enter or quit place)
- display notification (notification shown)
- stop (current running activity is stopped)
- pause (current running activity is paused)
- stop and start (current running activity is stopped and new activity started - activity type for new activity needs to be selected)
- pause and start (current running activity is paused and new activity started - activity type for new activity needs to be selected)
If you go to places and edit one of them you’ll also see these fields and the same actions are available. But in this case “Default” action is also available - it’s taken from Settings / Checkins. You may ask why duplicate actions in places and settings ?
- When new place is created the actions are set to Default
- User can quickly update default actions
Example
On the screenshot above default actions mean:
- when enter place, stop current running activity;
- when exit place, stop current running activity and start “Walk” activity
Actions for “Work” place above mean:
- when enter place, stop current running activity and start “Development”
- when quit place, run default action, that is stop running activity and start “Walk”
Limitations
- checkin settings and new place fields are not yet synced
- if you had place before with notification turned on these old notifications still may be shown (will fix in next update)
- new functionality drains battery faster