Blog / Business, StartUp App Ideas / mobile app

How Can Google Fit and HealthKit Supplement Your Fitness and Healthcare Apps?

  • Rating — 5 (2 votes)
  • by Tony
  • Updated on April 25, 2018
  • Read —
    7-8 minutes
Google Fit and HealthKit

To date Apple and Google allow developers building rich experiences with HealthKit and Google Fit APIs. The field of opportunities that companies provide to developers by opening their APIs is generous. While Google focuses more on the fitness tracking and better connectivity of all Android-powered wearables, Apple explores new opportunities in the healthcare industry.

We’ll start from some basic topics like core modules the frameworks are consists of and what are the datatypes that HealthKit and Google Fit provide. At the same time, we’ll provide the real world examples or what you can build with fitness platforms.

  1. Advantages of Apple HealthKit and Google Fit APIs
  2. Easy access and storage of sensor data
  3. Better interoperability
  4. All the basics covered
  5. Google Fit Platform Breakdown
  6. Examples of Data Types Google Fit API Provides
  7. Apple Health & Fitness APIs
  8. Examples of Data Types Apple’s HealthKit Framework Provides

Advantages of Apple HealthKit and Google Fit APIs

Easy access and storage of sensor data

Fitness and wearables are meant to go hand in hand. Many watches have a GPS, sensors, a heart rate monitor, and potentially a barometer. But without a comprehensive platform, it was hard for developers to consolidate this data.

Thanks to the power of Health API’s your app can get access to all these ways of measuring fitness activities. Such functions as read, interpret and record data from fitness devices now covered by fitness platforms.

Better interoperability

This is one of the main problems Android developers faced in the past. Google Fit provides simple, standard way for fitness devices to connect. Back in times, in order to integrate with numerous Android gadgets, app developers were required to build their own platform to connect them all. Google Fit solves this problem by giving apps one single API to access, record and store sensor data.

In other words, Google Fit and HealthKit are such little fitness hubs that ground all information streams on itself. As a developer, you don’t need to understand or create API for your app. You can just connect your fitness wearable to the nutrition app through Google Fit. Or you can now synchronize sleep tracking app with yoga app through HealthKit with no need to understand someone else’s code.

All the basics covered

The platforms not just consolidate data. They provide low-level sensor recording (only with the user consent) and perform hard computations for things like distance and calories. Here are some information types and computations that platforms process:

  • Food Items Eaten.
  • Hydration Data.
  • Record Steps & Daily Step Total.
  • Aggregate Daily Nutrition Data.
  • Heart Beats per Minute for a Time Interval.
  • Blood Pressure & Glucose Data.
  • Average, Maximum, and Minimum Index for a Particular Type of Activity.
  • Sleep Duration (light, deepness, REM).

By the way, this is only the fraction of all data types that you can access through APIs. There are also different Heart Rate timestamps, distances fused from user’s height and GPS, etc. You can familiarize with a full list of data types on the Google Fit developers page.

Google Fit Platform Breakdown

To start with, you should understand that Google Fit is only a part of bigger ecosystem called Google Play services, which includes Maps, Google+, and more. This is Google Play that allows your app to connect to PlayStore and contains the individual Google services and runs as a background process in the Android OS.

Google Fit itself can be divided into four big components and two minor.

Google API Breakdown

  1. Sensors API, which gives you access to raw sensory data streams (like heart rate) from Android devices and wearable devices.
  2. Recording API, it does automated storage of fitness data for your using subscription. For example, you can subscribe to a data type and Google Fit will store fitness data for that data type in the background.
  3. History API, which provides access to the fitness history and lets you perform bulk operation like reading, inserting, and deleting from the finished history.
  4. Sessions API. Sessions are basically a metadata layer on top of raw fitness data that lets you store the whole computed activities like a bike ride or weightlifting.
  5. Goals API, a minor component that provides a way to track the goals the user has set for their health and fitness progress.
  6. Bluetooth Low Energy API provides access to Bluetooth Low Energy sensors in Google Fit. This API enables your app to look for available BLE devices and to store data from them in the fitness store.

Examples of Data Types Google Fit API Provides

  • Total time and number of segments in a particular activity for a time interval.
  • Average, maximum, and minimum heartbeats per minute for a time interval.
  • Instantaneous power generated while performing an activity.
  • A bounding box for the user’s location over a time interval. GPS.
  • User’s nutrition intake during a time interval.
  • Power generated while performing an activity.
  • Jump height measures the height in inches for each jump recorded over a given period of time (Provided by Adidas’ App).

Apple Health & Fitness APIs

On the other hand, iPhone-maker is more focused on the healthcare as a whole. As it states from the naming of API, Apple is searching for new ways to drive revenue grows by expanding its presence in healthcare.

New functions introduced with HealthKit app last year makes it more like a diagnostic tool that simple a fitness tracker. Through the recent health tech acquisitions Apple has assembled the team of experts working on two problems:

  • Safe transfer of health information from one hospital to another one.
  • Help doctors analyze mountains of data about their patients.

From the developers’ point of view, Apple opens up a new field for grows and experimentation. There are actually three kits that cover health care needs of users.

research kit

HealthKit –  A massive framework that consolidates health and fitness data of the user and allows third-party apps to access this data while maintaining the user’s privacy and control over their data.

ResearchKit – A framework released in 2015 that enables provider and medical researchers to create a study that they can conduct on a large scale using iPhones.

CareKit – This framework evolved from ResearchKit. It is an open-source framework that enables providers to build apps that can empower patients to take an active role in their care. It’s basically an upgrade that provides patient an access to their health data from ResearchKit and other sources in a handy manner.

CareKit is great for chronic and acute use cases. For example, you can supplement a mental health treatment where medication tracking is critical. Also, your app can perform assessments like depression and anxiety surveys to see user’s progress.

Another good example of CareKit and HealthKit integration is a surgery, where one of the most critical parts is the recovery post-surgery phase. You can supply patients with dynamic instructions for post-surgery recovery, that will change over time according to the patient’s progress.

Examples of Data Types Apple’s HealthKit Framework Provides

Apple names user’s data types as “constants” and grouped identifier into Type Identifiers based on the type of data samples they provide. Here’re examples of data from each group you might be interested in:

  • Body Measurements – user’s body mass index, fat percentage, height, etc.
  • Fitness Identifiers – a number of steps the user has taken, the distance the user has moved using a wheelchair, energy burned, etc.
  • Vital Signs Identifiers – user’s heart rate, body temperature, blood pressure,  respiratory rate.
  • Results Identifiers – oxygen saturation, the number of times the user has fallen, or a number of puffs user has taken from inhaler.
  • Nutrition Identifiers – the amount of biotin, caffeine, calcium, and other ingredients consumed.
  • UV Exposure Identifier – A quantity sample type that measures the user’s exposure to UV radiation based on body temperature and lighting conditions.
  • Characteristics Type Identifiers – user’s sex, blood type, date of birth, skin type, etc.

You might already notice that many data types rely on manual input, so don’t expect much magic out of Google and Apple’s Fitness APIs.

For example, you’ll get user’s blood type only if he/she indicates it manually. Although no one stops you to ask required information during onboarding. There are many use cases how to acquire user’s data, some of them we’ll cover in our next articles. But you better save your time and ask directly by contacting us!

Bottom Line

To date, Apple’s HealthKit and Google Fit provides developers access to a broad range of metrics and data types. Also tech giant made sure that it is easy for us as a development company to create new products and fitness apps. As you may notice from examples of data types there is a vast field of opportunities which only limits your creativity!

Got a Fitness App Idea?

 

Tony Tony Sol is the business development manager of GBKSOFT, overseeing the production of all writings for both internal blog and external platforms. He is technical-driven person always looking for new benefits of merging business and software.

Leave a comment
Close

Leave a Reply

Related services

Categories

All articles Business Company News Marketing Tips StartUp App Ideas Tech UI and Design

People are talking about

You've got
a project in mind

What's next?

Send us a message with a brief description of your project.
Our expert team will review it and get back to you within one business day with free consultation and next steps.

Testimonials

Nothing can be better than getting a review from our happy clients
who recommend us and trust us their business.

Dave
GBKSOFT’s performance has been very strong. We've referred them twice, which says all anyone needs to know about them. A referral is the ultimate signal we can give that these guys are great. Strong
Gireesh, USA
One word...EXCELLENT.
Very well thought out and articulate communication. Clear milestones, deadlines and fast work.Patience. Infinite patience. No shortcuts. Even if the client is being careless (me). The best part...always solving problems with great original ideas, especially with this strange project where we are making up new words every day!
Excellent
Jonathan
More good work from team GBKSOFT. All well executed. The support within GBKSOFT is excellent. Communication is good too, spoken English as well as written. Support
Devan
They write clean code, adhere to deadlines, and communicate extremely well. I strongly recommend anyone from the GBKSOFT agency and hope to work with them again myself. Clean Code
Tao
GBKSOFT did a good job to manage the project. They put in a good effort to communicate with us and make it easier for us to communicate with developers. Good Job
Garrett
They proved to be very good and they’re very reliable as well. They are quite conscientious. They will go the extra yard to make sure we're happy. Reliable
Andy
I think they do great work. I haven’t yet given them something that they were unable to do. Great
Raphael
My Project with GBKSOFT gave me the ability to develop my software while keeping a busy schedule. Ana, who was my project manager, was very professional and was always understanding of my vision and what I wanted. I would recommend GBKSOFT again to any other company or person who has a vision for their web application. Thank you GBKSOFT! Recommend
Aaron
I’ve been using GBK Soft for the past 3 years and they have been great. Communication is unparalleled to other app development companies. I’ve continued to return to them to improve my iOS app countless times and I will continue to do so in the future. I highly recommend this company! Improve
19
spinner