Sleep tracking on Android phones is about to get a lot better

Google’s new Sleep API enables low-power sleep tracking on Android devices.

google-sleep-api.jpg

What you need to know

  • Google is making its Sleep API publicly available.
  • The API is used to power features like Bedtime mode in Google’s Clock app.
  • Developers can now use the Sleep API as part of the latest Google Play Services.

Google has decided to make its Sleep API publicly available to help Android users stay informed about their sleep and allow developers to create great sleep tracking apps that have minimal impact on battery life. Most developers currently use detection algorithms that are inconsistent between apps. When multiple apps check for changes in user activity independently and continuously, your phone’s battery drains faster than usual.

Nick Grayson, Product Manager at Google, wrote in a blog post:

So much of what we do relies on a good night’s rest. Our phones have become great tools for making more informed decisions about our sleep. And by being informed about sleep habits, people can make better decisions throughout the day about sleep, which affects things like concentration and mental health.

The Sleep API is part of the Android Activity Recognition API, and generates information about the user’s sleep. It utilizes an on-device AI model that relies on the phone’s light and motion sensors as inputs to collect sleep information. The API reports the sleeping information to apps in two ways: a ‘sleep confidence’ at regular intervals of up to 10 minutes and a daily sleep segment reported after it detects a wakeup.

The first third-party app to use the Sleep API is Urbandroid’s Sleep As Android. It is worth noting, however, that apps won’t be able to detect sleep unless you grant the Physical Activity Recognition runtime permission. In the coming weeks, you can expect many more popular sleep tracking apps to start using the Sleep API.

Related posts

Latest posts

Does Nothing’s new CMF phone bend or break in durability test?

Nothing’s new CMF Phone 2 Pro has been very warmly received since its launch last month, with many loving it for its fun design and decent specs for a handset costing just $279. A new Android phone like this was always going to attract the attention of YouTuber Zack Nelson — he of JerryRigEverything — […]

From Android 1.0 to Android 16: How Google’s mobile OS has evolved since 2008

With Google I/O 2025 streaming next week, we're taking a walk through the complete history of Android

You Asked: Sony A95L vs. Bravia Mark II, and iPhone 17 Air battery life

On today’s You Asked: Should you go with a 77-inch A95L or 65-inch Bravia 8 Mark 2? Will the expected iPhone 17 Air have poor battery life? And, is burn-in still a problem on some of the latest OLED TVs? Best 55-inch TV Peter asks: What is the best TV at 55 inches, OLED or […]

One brand has a golden opportunity to make the best camera phone of 2025

Sony is about to announce a new Xperia flagship phone, and I've got high expectations for it.

The Galaxy S25 FE might pack a pleasant hardware twist

If luck is on our side, the Galaxy S25 FE might just snag a more powerful chip.

You don’t need to care about 16 KB memory pages, but it’s still an important change. Here’s why

A technical requirement for the platform's "future direction" will have little effect on what you do every day.

I assembled an Ultrahuman smart ring by hand and learned how they work

Ever wonder how they squeeze so many components into a smart ring? I got to see how every part is

Powerbeats Pro 2 Available for Lowest Ever Price of $199.95, Plus Beats Pill at $99.95 and More

Amazon this weekend is discounting a collection of Beats headphones and speakers, including an all-time low price on the Powerbeats

Everything you need to turn your phone into the ultimate gaming handheld

Don't spend a bunch of money on a dedicated handheld just to get something new and shiny. I'd bet that

Motorola’s Moto Watch needs to start living up to the brand name

A licensed partner made the old budget Moto Watches. Now Motorola is stepping in, but it's not clear yet how