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

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.

Advertisement

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.
 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement
Popular Mobile Brands
  1. Sony WF-1000XM6 Spotted in Comparison Images With These Design Changes
  2. Samsung Galaxy S26 Series Pricing, Specs Leak As Galaxy Unpacked Nears
  3. Samsung Galaxy S26 Series Will Be Available via These E-Commerce Platforms
  4. Motorola Edge 70 Fusion Renders Leaked Again: See Design and Colourways
  5. Instagram Might Take On Sora With Its AI-Powered Face Swap Feature
  6. Anaganaga Oka Raju Now Streaming on OTT: What You Need to Know
  7. Infinix's Note 60 Lineup Will Feature Snapdragon Chips on Select Models
  8. PS Plus Game Catalogue Will Reportedly Add Marvel's Spider-Man 2 This Month
  9. Nothing Phone 4a Pro Listed on UAE's TDRA Database, Might Launch Soon
  10. Zeiss Aatma Lenses With Retro Design Unveiled in India: See Availability
  1. Apple Reportedly Delays Contextual Awareness and Other Advanced Siri Features Planned for iOS 26.4 Release
  2. James Webb Telescope Finds Galaxies Nearly as Old as the Early Universe
  3. SPHEREx Captures Dramatic Outburst of Interstellar Comet 3I/ATLAS
  4. Microsoft Warns AI Tools With Excessive Privileges Could Act as ‘Double Agents’
  5. Sony WF‑1000XM6 Leak Reveals Size Differences With WF‑1000XM5 and WF‑1000XM4
  6. Android 17 Beta 1 Expected to Roll Out to Eligible Pixel Devices Soon: Expected UI Changes, Features
  7. Lumio Vision TVs to Receive Android 14 Update With Performance Improvements; Arc Projector to Follow
  8. Maruva Tarama OTT Release Date: When and Where to Watch it Online?
  9. Hackers Use ClickFix Scam to Target Crypto Executive via Fake Zoom Meetings
  10. Heated Rivalry OTT Release Date Revealed: Know When and Where to Watch it Online
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.