Use the Google Fit platform to create more engaging health and fitness apps
Connect to the Google Fit platform to read and store a user's health and wellness data across devices, collect activity data, and record sensor data. The Google Fit platform drives retention, higher ratings, and faster development for health and wellness apps.
Why it works
Google Fit gives you a single set of APIs. With a user’s permission, your app can access phone sensor data, wearable data, and their health and wellness data from other apps. Once you integrate using the Google Fit APIs, your app can access new data sources that are available without needing additional integrations.
Use the Google Fit APIs to help users see an overview of their health and wellness. Create sessions when users go to a yoga class, practice meditation, go for a run or track their sleep and they can see these in their Google Fit journal. Discover information added by other apps and devices that users choose to share, from body stats like weight, body fat percentage, and heart rate, to sleep and nutrition information.
- Low power, passive recording of activities, steps, and distances. Your app can use the Recording API to subscribe to a data type. This turns on sensors at appropriate times throughout the day and records data that your app can query later. For example, to drive accurate passive workout recording at low power, the platform will dynamically sample GPS depending on a phone or Wear OS device's motion.
- Computes distance and calories by transforming sensor data. If your app only writes steps and activity data, the platform will calculate corresponding distances and calorie estimates. This is one less computation for your app to perform.
- Write to and read from a centralized fitness store. The Google Fit platform acts as a hub of health and wellness data from connected apps and devices. It stores the user's information, making it available to apps as raw, aggregated, or merged data. These include data points for nutrition, workout sessions, and steps from connected apps, wearables, smart scales, and more.
- Write activity segments to the Fit platform to contribute to Heart Points goals. Heart Points goals help users achieve the physical activity recommendations from the World Health Organization and American Heart Association. Writing activity segments to the fitness store - heart rate (if available) and steps data for walking and running activities from your apps - will contribute to this activity goal.
- React to changes. The fitness APIs allow apps to register listeners for data changes in the fitness store. For example, if a user logs a new meal or a new weight entry, your app can be notified and deliver a timely, customized notification to the user to re-engage them.