Google’s Sleep API to Improve Sleep Tracking, Save Your Phone Battery

Google Sleep API will come built in the Google Play Services.

Advertisement
By Sourabh Kulesh | Updated: 26 February 2021 18:48 IST
Highlights
  • Sleep API uses phone’s light and motion sensors to collect data
  • Sleep As Android uses Google Sleep API
  • Sleep As Android can be downloaded from the Android Store
Google’s Sleep API to Improve Sleep Tracking, Save Your Phone Battery

Sleep API needs user’s permission to detect sleeping pattern

Photo Credit: Google

Google Sleep API is being made publicly available, and this will allow sleep tracking apps on Android smartphones use less power to detect sleep patterns, the tech company said. The Sleep API will be built right into Google Play Services, and will centralise sleep detection processing. It is one the Activity Recognition APIs which, “with the user's permission, can detect user's activities such as whether a user is biking or walking”. Google has collaborated with Urbandroid, the developer of the popular alarm app, Sleep As Android, for this.

As per a blog post by Google, the Sleep API is an Android Activity Recognition API that surfaces information about the user's sleep after being given permission to do so. It uses an on-device artificial intelligence model which records input data, like the usage of screen and device movement, from the device's light and motion sensors. The data is reported at a regular interval (up to 10 minutes) in the background. The sleep-tracking apps do the same process to deliver information about your sleep, however, the detection algorithms of those apps may be inconsistent.

If a user has multiple apps they will independently and continuously check for changes in user activity leading to more battery usage. Since the Sleep API will come built in the Google Play Services, users won't be needing additional sleep-tracking apps to run in the background and get their sleep data. With centralised processing the phone's battery will not suffer.

For this launch, Google has collaborated with Urbandroid, the developer of the popular alarm app, Sleep As Android. “The new Sleep API gives us a fantastic opportunity to track it automatically in the most battery efficient way imaginable,” the team said. Sleep As Android can be downloaded from the Android Store. As mentioned, the app must be granted the Physical Activity Recognition runtime permission from the user to detect sleep, Google said.

Advertisement


What will be the most exciting tech launch of 2021? We discussed this on Orbital, our weekly technology podcast, which you can subscribe to via Apple Podcasts, Google Podcasts, or RSS, download the episode, or just hit the play button below.

Affiliate links may be automatically generated - see our ethics statement for details.
 

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

Advertisement
Popular Mobile Brands
  1. Nothing Phone 3a Pro 5G Long Term Review: A Blend of Style, Speed, and Power
  2. AI+ Pulse, AI+ Nova 5G India Launch Timeline, Design and Colours Revealed
  3. Oppo K13x 5G With 6,000mAh Battery Launched in India: See Price
  4. Apple Could Consider Buying Perplexity to Strengthen Its AI Development
  5. Nothing Phone 3 Full Specifications Surface Ahead of Its July 1 Debut
  6. Asus V470VA All-in-One PC Review: A Stylish AiO PC For Everyday Work
  7. Samsung Galaxy Book 5 Pro Review: Your Work Companion
  8. Huawei Mate XT 2 With Satellite Connectivity Could Launch in September
  9. Boat Airdopes Prime 701 ANC With Up to 50 Hours Battery Launched in India
  10. These Samsung Galaxy Models Could Get One UI 8 Beta Update This Month
  1. Honor Magic V5 Teased to Measure 8.8mm Thick; Colours, RAM and Storage Details Revealed
  2. Apple Reportedly in Talks to Acquire Perplexity AI to Strengthen Its Artificial Intelligence Efforts
  3. AI+ Pulse, AI+ Nova 5G Confirmed to Launch in India in July; Design, Colour Options Revealed
  4. iPhone, iPad Pages Updated With Energy Labels to Comply With New EU Regulations
  5. China’s Restrictions on Rare Earth Mineral Exports to Reportedly Adversely Impact Supply Chain Jobs in India
  6. Boat Airdopes Prime 701 ANC With Up to 50 Hours Total Playback Time Launched in India: Price, Features
  7. Huawei Mate XT 2 Launch Timeline Leaked; Said to Offer Satellite Connectivity
  8. Samsung Galaxy S24, Galaxy Z Flip 6 Tipped to Get Android 16-Based One UI 8 Beta Next Week
  9. Kabul Now Available for Streaming on Lionsgate Play: What You Need to Know About Political Thriller Online?
  10. Kubera OTT Release Reportedly Revealed: Where to Watch Dhanush Starrer Movie Online?
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.