Google launches an API for sleep tracking on Android

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on email
Share on whatsapp

Google launches an API for sleep tracking on Android

To perform a sleep tracking no need to have an activity bracelet. Can measure sleep from our Android mobile with applications that from now on can use less battery.

After launching more than two years ago the [API de actividades](Activity recognition API), Google is now launching the new Sleep API, a new feature that developers can use in their applications to detect when we are sleeping in a more efficient way.


{“videoId”: “x7zhhij”, “autoplay”: false, “title”: “COMPARISON of SMARTWATCH 2021 – What is THE BEST SMARTWATCH”}

The sleep API

Google reports that this new API is very important for developers year tracking applications, as they will not have to spend valuable engineering time combining the signals from the sensors to detect when the user has started or finished sleeping, with detection algorithms that are inconsistent between applications and also verify independent and continuous changes in user activity. When there are several applications that try to find out if we are sleeping or awake, the battery life is affected.

Sleep Tracking

With the Sleep API, developed in collaboration with the creator of Sleep As Android, the processing of sleep detection is centralized in a single API, so that the applications that make use of this API will not consume more battery, since Google Play Services will calculate for all applications our sleep activity. Not like now, that each application tries to detect our state.

Google already uses this sleep API in several of its applications, as in the Clock application that allows us track our dream and the activity we do at hours when we should be sleeping.

Via | Google


The news

Google launches an API for sleep tracking on Android

was originally published in

Xataka Android

for
Cosmos

.

Google launches an API for sleep tracking on Android 1

Google launches an API for sleep tracking on Android 2