Facebook Implements Fix for iOS App Battery Draining Issues

Facebook's newest iOS update, out today, fixes a major battery draining bug that some Facebook users have been experiencing in recent weeks. Affected users were seeing large amounts of battery drain on their iPhones due to Facebook running in the background, something that happened even when background app refresh was toggled off in the Settings app.

While the latest Facebook app release notes don't include a reference to the issue, Facebook engineering manager Ari Grant wrote a post (via TechCrunch) explaining the issues behind the battery drain and what Facebook has done to fix it. According to Grant, there were several factors that contributed to the problem, including a "CPU spin" in the network code and silent background audio sessions that kept the app awake even when it wasn't open.

facbook battery drain

The first issue we found was a "CPU spin" in our network code. A CPU spin is like a child in a car asking, "Are we there yet? Are we there yet? Are we there yet?"with the question not resulting in any progress to reaching the destination. This repeated processing causes our app to use more battery than intended. The version released today has some improvements that should start making this better.

The second issue is with how we manage audio sessions. If you leave the Facebook app after watching a video, the audio session sometimes stays open as if the app was playing audio silently. This is similar to when you close a music app and want to keep listening to the music while you do other things, except in this case it was unintentional and nothing kept playing. The app isn't actually doing anything while awake in the background, but it does use more battery simply by being awake. Our fixes will solve this audio issue and remove background audio completely.

When the Facebook battery draining issue first began circulating, MacStories' Federico Vittici hypothesized it was caused by silent audio running in the background, which turned out to be correct. Vittici believed Facebook used silent audio intentionally as a way to keep the app active in the background for tasks like pre-loading content, which he said showed "a deep lack of respect for iOS users."

Regarding today's comment from Facebook engineer Ari Grant, TechCrunch's Matthew Panzarino also suspects there's a possibility Facebook's use of background audio might have been done on purpose, despite Facebook's claim that it was an unintentional bug.

So if you believe Grant, this is a simple bug. It could happen to anyone etc etc. If you don't believe him, it was a thing Facebook was doing to make their app work a way they wanted it to but Apple didn't and they got caught. I'm not gonna pass any judgments here -- bugs happen all of the time and it's not fun to get pilloried over a simple mistake. Either way, attention was brought to it and it's fixed now.

Grant says fixes have been implemented for both of the issues causing battery drain and Facebook users "should see improvements in the version released today." Facebook will also continue to improve the battery usage of its iOS app.

Top Rated Comments

AbSoluTc Avatar
72 months ago
Draining your life, draining your battery.
Score: 42 Votes (Like | Disagree)
chrisbb Avatar
72 months ago
I fixed the problem myself..... just deleted the app.
You can't drain my battery if its not installed on my phone :p
Score: 34 Votes (Like | Disagree)
ximdotro Avatar
72 months ago
the best fix is to delete Facebook!
Score: 31 Votes (Like | Disagree)
nutmac Avatar
72 months ago
Regarding today's comment from Facebook engineer Ari Grant, TechCrunch's Matthew Panzarino also suspects there's a possibility Facebook's use of background audio might have been done on purpose, despite Facebook's claim that it was an unintentional bug.
Facebook has over 100 engineers working on iOS app. It's hard to believe that something so major was an unintentional bug, from a company known to violate user privacy so many times.
Score: 25 Votes (Like | Disagree)
teknikal90 Avatar
72 months ago
still don't trust it.
and I don't believe they 'jumped on it so quickly'.
The issue had been apparent since iOS 9.0 beta 1 showed granular battery usage details....6 months ago.
They just got caught red handed and decided now's the time to finally fix their own exploit.

Browser facebook is still better.
Score: 21 Votes (Like | Disagree)
farewelwilliams Avatar
72 months ago


When the Facebook battery draining issue first began circulating, MacStories' Federico Vittici hypothesized ('https://www.macstories.net/linked/the-background-data-and-battery-usage-of-facebooks-ios-app/') it was caused by silent audio running in the background, which turned out to be correct. Vittici believed Facebook used silent audio intentionally as a way to keep the app active in the background for tasks like pre-loading content, which he said showed "a deep lack of respect for iOS users."
that's grounds for removal of Facebook from the app store.
Score: 19 Votes (Like | Disagree)

Top Stories

apple watch ecg

Apple Watch Likely to Gain Blood Pressure, Blood Glucose, and Blood Alcohol Monitoring

Monday May 3, 2021 4:03 am PDT by
The Apple Watch may gain the ability to measure blood pressure, blood glucose, and blood alcohol levels, according to newly-revealed information about one of Apple's chosen business partners. Apple has been revealed to be the largest customer of the British electronics start-up Rockley Photonics, The Telegraph reports. Rockley Photonics has developed non-invasive optical sensors for...
tile sticker e1570533758981

Tile CEO: 'We Welcome Competition From Apple, But We Think It Needs to Be Fair'

Tuesday May 4, 2021 9:51 am PDT by
Just after Apple announced its AirTags, Tile CEO CJ Prober relayed his concerns about competing with Apple in the tracking space, and said that Tile would ask Congress to investigate Apple's business practices specific to Find My and item trackers. Prober this week did an interview with Bloomberg, where he further expanded on Tile's complaints about Apple and why he feels that Tile is...
facebook instargram updated att prompt 1

Facebook and Instagram Ask Users to Enable App Tracking in Order to Keep Services 'Free of Charge'

Sunday May 2, 2021 1:22 pm PDT by
As a way to convince users to enable tracking across other apps and websites, Facebook is deploying the tactic of telling users that they must enable tracking as part of the App Tracking Transparency framework in iOS 14.5 if they want to help keep Facebook and Instagram "free of charge." App Tracking Transparency or ATT is the newest privacy feature to come to iPhone and iPad devices as part ...
fortnite apple logo 2

Epic CEO Tim Sweeney Admits App Store's 30% Cut Is Similar to Consoles, Would Have Accepted Special Deal With Apple

Tuesday May 4, 2021 1:54 pm PDT by
Apple's legal battle with Epic Games is continuing on, and during the second day of the trial, Epic Games' CEO Tim Sweeney continued his testimony against Apple. Sweeney was grilled by Apple's lawyers, and made several points seemingly favorable to Apple. In addition to mentioning how he prefers Apple's iPhone and values Apple's privacy policies that he's aiming to dismantle, Sweeney...
Flat 2021 MacBook Pro Mockup Feature 1

Mini-LED Display Production Improving for Redesigned MacBook Pro Models Later This Year

Monday May 3, 2021 8:33 am PDT by
Apple supplier TSMT, a key vendor involved in the production of mini-LED displays in the newly announced 12.9-inch iPad Pro, has been able to address technical challenges for the production of mini-LED displays to be used in the upcoming 14 and 16-inch redesigned MacBook Pro models. As reported by DigiTimes, TSMT had initially been facing production constraints with the circuit board and...
signal instagram ads3

Signal Shares the Instagram Ads Facebook Doesn't Want You to See

Wednesday May 5, 2021 1:29 am PDT by
Encrypted messaging app Signal has had a series of Instagram ads blocked from the social media platform, after it attempted to show users how much data the Facebook-owned company collects about them and how it's used to push targeted ads. In a blog post, Signal described how it generated the ads to show users why they were seeing them, simply by declaring upfront the information that the...
Foldable iPhone 2023 Feature Yellow

Kuo: Apple to Launch 8-Inch Foldable iPhone in 2023

Sunday May 2, 2021 8:43 pm PDT by
Apple is working to launch a foldable iPhone with an 8-inch QHD+ flexible OLED display in 2023, Apple analyst Ming-Chi Kuo said today in a note to investors that was seen by MacRumors. Based on our latest industry survey, we forecast that Apple will likely launch a foldable iPhone with an 8-inch QHD+ flexible OLED display in 2023, with SDC as the exclusive display supplier and Samsung Foundry...
iOS 14 on iPhone feature emergency

Apple Releases iOS and iPadOS 14.5.1 With Fixes for App Tracking Transparency Bug, WebKit Security Issues

Monday May 3, 2021 10:04 am PDT by
Apple today released iOS and iPadOS 14.5.1, minor security updates that come just a week after the release of the iOS 14.5 update. There is also a companion watchOS 7.4.1 update for Apple Watch and an iOS 12.5.3 update for older iPhone and iPad devices that don't support Apple's latest operating system versions. According to Apple's release notes, the update fixes a bug with App Tracking...
airtags teardown tile mat galaxy smarttag

iFixit Shares AirTag Teardown Revealing 'Impressively Compact' Design Compared to Tile Mate and Galaxy SmartTag

Sunday May 2, 2021 4:54 am PDT by
iFixit has shared the first of its two-part series in tearing down Apple's AirTag item tracker, revealing that Apple had to make impressive design decisions to achieve its small design, including rethinking the speaker layout. For comparison, iFixit compared Apple's AirTag to the Tile Mate and the Samsung Galaxy SmartTag. Compared to the competition, AirTag is the smallest in size, with the...
maxresdefault

Hands-On With Brydge's 12.9-Inch iPad Pro Keyboard With Trackpad

Tuesday May 4, 2021 11:48 am PDT by
Brydge has been making keyboards for Apple's iPads for years now, and the newest model, the Brydge 12.9 MAX+, is compatible with the third, fourth, and fifth-generation iPad Pro models, so it works even with the new mini-LED iPad Pro. Subscribe to the MacRumors YouTube channel for more videos. In our latest YouTube video, we checked out the new Brydge 12.9 MAX+ to see if it's a viable...