Create a trigger that triggers based on app life cycle events - like paused, resumed, etc.
This would enable the collection of data when the app returns to the foreground, like health data (since the health sampling only works when the app is in the foreground).
Create a trigger that triggers based on app life cycle events - like paused, resumed, etc.
This would enable the collection of data when the app returns to the foreground, like health data (since the health sampling only works when the app is in the foreground).