Closed JosephAbbey closed 4 weeks ago
Aside from temporal events, the only useful trigger for background services is activity completion (https://developer.garmin.com/connect-iq/api-docs/Toybox/Background.html#registerForActivityCompletedEvent-instance_method).
Updating the states instantly on completion would allow for better automations:
We should be able to use the same callback that is already implemented for temporal events.
https://developer.garmin.com/connect-iq/api-docs/Toybox/System/ServiceDelegate.html#onActivityCompleted-instance_function
Have onActivityCompleted() call onTemporalEvent()?
onActivityCompleted()
onTemporalEvent()
sport
subsport
-1
Aside from temporal events, the only useful trigger for background services is activity completion (https://developer.garmin.com/connect-iq/api-docs/Toybox/Background.html#registerForActivityCompletedEvent-instance_method).
Updating the states instantly on completion would allow for better automations:
We should be able to use the same callback that is already implemented for temporal events.