Platform Overview
Google
Fit is an open ecosystem that allows developers to upload fitness
data to a central repository where users can access their data from
different devices and apps in one location:
- Fitness apps can store data from any wearable or sensor.
- Fitness apps can access data created by any app.
- User's fitness data is persisted when they upgrade their fitness devices.
Responsible use of Google Fit
As
a developer of fitness and wellness apps, you often collect and
manage important user information. Keep these key principles in mind:
- Always clearly explain to the user what data you will collect and why.
- Honor user requests to delete their data.
- If you read fitness data from Google Fit, you must also write the fitness data you collect to Google Fit.
- Do not use Google Fit APIs for non-fitness purposes, such as storing medical or biometric data, selling data, or using data for advertising.
- Carefully review the Google Fit Terms and Conditions before using Google Fit.
By using the API, you agree to the Google Fit Terms and Conditions.
Components
Google
Fit consists of the following components:
The fitness store
The
fitness store is a cloud service that persists fitness data using
Google's infrastructure. Apps on different platforms and devices can
store data and access data created by other apps. Google Fit provides
a set of APIs that make it easy to insert data and query the fitness
store.
The sensor framework
The
sensor framework defines high-level representations for sensors,
fitness data types, data points, and sessions. These representations
make it easy to work with the fitness store on any platform.
Permissions and user controls
Google
Fit requires user consent before apps can read or store fitness data.
Google Fit defines OAuth scopes that map to three permission groups
with separate read and write privileges: activity, location, and
body. Each permission group grants apps access to a set of data
types. Apps specify one or more of these scopes to work with fitness
data, and Google Fit requests the corresponding permissions from the
user.
Google Fit APIs
Google
Fit provides the following APIs:
- Android APIs for Android apps.
- REST API for apps on any platform.
No comments:
Post a Comment