Google Sleep API is being made publicly accessible, and this will permit sleep tracking applications on Android phones to utilize less power to identify sleep patterns, as said by the tech company. The Sleep API will be incorporated directly into Google Play Services and will centralize the sleep discovery process. It is one of the Activity Recognition APIs which, “with the user’s consent, can recognize its activities, for example, whether a user is trekking or walking”. Google has worked together with Urbandroid, the designer of the mainstream alarm application, Sleep As Android, for this.
According to a blog entry by Google, the Sleep API is an Android Activity Recognition API that surfaces data about the user’s sleep after being permitted to do so. The app utilizes an on-gadget AI model which records input information, such as screen timing and gadget movement, from the gadget’s light and motion sensors. The information gather is reported at a normal stretch for example after every 10 minutes in the background.
On the off chance if a user has multiple applications install for tracking his/her activities each app processing will consume more battery from the device. Since the Sleep API will come inbuilt in the Google Play Services, users will not need an extra sleep tracking app to get their sleep data. And as the app has centralized processing the smartphone battery would not also affect.
For this launch, Google has collaborated with the famous alarm app, Sleep As Android developer Urbandroid, and the team said
“The new Sleep API gives us a fantastic opportunity to track it automatically in the most battery efficient way imaginable,”