Page Summary
-
Sessions in Google Fit represent fitness activities over a time interval.
-
The Sessions API allows your app to create and manage sessions in the fitness store.
-
You can create sessions in real-time for ongoing activities or insert them afterwards.
-
Sessions can include activity segment data to accurately reflect varied activities within a single session.
-
The Sessions API also enables reading sessions based on various criteria and viewing sessions in other apps.
Sessions represent a time interval during which users perform a fitness activity. The Sessions API lets your app create sessions in the fitness store.
For ongoing fitness activities where the user notifies your app when they start and finish a fitness activity, you can create sessions in real time.
You can also insert a session into the fitness store after a fitness activity finishes or when you import data and sessions from outside Google Fit.