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

(View all)
Avatar
62 months ago
Draining your life, draining your battery.
Score: 42 Votes (Like | Disagree)
Avatar
62 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)
Avatar
62 months ago
the best fix is to delete Facebook!
Score: 31 Votes (Like | Disagree)
Avatar
62 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)
Avatar
62 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)
Avatar
62 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

5.4-Inch iPhone 12 Model Size Compared to Original iPhone SE and iPhone 7

Saturday July 4, 2020 9:44 pm PDT by
iPhone 12 dummy models based on leaked schematics have been starting to circulate online and in online marketplaces. Not happy with the circulating size comparisons between the rumored 5.4" iPhone 12 and the original iPhone SE models, MacRumors forum user iZac took matters into his own hands and purchased his own 5.4" dummy model to provide more detailed size comparisons between the original...

Top Stories: iPhone 12 Rumors, Apple's A12Z-Based Mac mini, Leaked iMac, and More!

Saturday July 4, 2020 6:00 am PDT by
With WWDC now behind us, our attention this week largely turned back to rumors, led by increasing claims that Apple controversially won't be including a power adapter in the box with the iPhone 12. We also saw a few other iPhone 12 rumors, signs of an upcoming iMac update, and some more information on timing of updates for Apple's smaller iPads. The other big topic this week was Apple's...

Apple Survey Asks iPhone Users What They Do With Old Power Adapters

Friday July 3, 2020 10:13 am PDT by
Amid multiple reports that Apple will no longer include a power adapter in its iPhone boxes starting with the iPhone 12 later this year, it appears Apple is surveying recent iPhone buyers to ask about what they've done with the power adapters that came with their previous iPhones. Screenshot via Twitter user @bedabb_ Apple's surveys typically cover numerous aspects of its products, but...

Tom Hanks Discusses 'Heartbreaking' Shift of WWII Film Greyhound From Theatrical Blockbuster to Apple TV+ Exclusive

Monday July 6, 2020 7:53 am PDT by
Tom Hanks' WWII drama "Greyhound" is set to premiere on Apple TV+ this Friday, July 10, and ahead of that debut the actor gave an interview with The Guardian discussing the film. "Greyhound" was originally planned to see a theatrical release this summer, and was repeatedly delayed in the wake of the ongoing Covid-19 pandemic. Apple won the streaming rights to the film, and in the new...

Shipping Estimates for 27-Inch iMac Continue to Slip, Now Into September

Monday July 6, 2020 6:55 am PDT by
Amid rumors and hints of a forthcoming update for the iMac, supplies of Apple's current 27-inch iMac continue to dwindle with mid- and high-end stock configurations now seeing shipping estimates pushed back into September. The 27-inch iMac has seen tight supplies and extended shipping estimates for months now, but the situation has been gradually worsening to the point where new buyers can...

Apple Officially Obsoletes First MacBook Pro With a Retina Display

Wednesday July 1, 2020 3:40 am PDT by
As expected, Apple's first MacBook Pro with a Retina display is now officially classed as "obsolete" worldwide, just over eight years after its release. In a support document, Apple notes that obsolete products are no longer eligible for hardware service, with "no exceptions." This means that any mid-2012 Retina MacBook Pro 15-inch models still out there that require a battery or other...

First Arm-Based Macs to Be 13-Inch MacBook Pro and Redesigned iMac, Launches Coming in Late 2020 or Early 2021

Sunday June 21, 2020 9:18 am PDT by
Apple plans to introduce its Arm-based custom designed chips for Macs at WWDC, Apple analyst Ming-Chi Kuo said in a note to investors today, agreeing with an earlier report from Bloomberg. Kuo says that the first Mac models to adopt Arm-based chips will be the 13.3-inch MacBook Pro and an iMac with a redesigned form factor, with Apple planning to launch the new models in the in fourth...

Hands On With iPhone 12 Models Showing New Sizes and Design

Monday July 6, 2020 2:04 pm PDT by
Ahead of the launch of new iPhones we often see dummy models created based on leaked schematics and specifications, with those models designed to let case makers create cases for the new devices ahead of their release. We got our hands on a set of dummy models that represent the iPhone 12 lineup, giving us our first close look at the iPhone 4-style design and the different size options. Subscri ...

EU Advertisers Criticize New App Tracking Privacy Controls in iOS 14

Friday July 3, 2020 3:44 am PDT by
A Google-backed group of European digital advertising associations has criticized Apple for requiring apps in iOS 14 to seek additional permission from users before tracking them across other apps and websites, reports Reuters. Sixteen marketing associations, some of which are backed by Facebook and Alphabet's Google, faulted Apple for not adhering to an ad-industry system for seeking user...

LinkedIn Says iOS App Reading Clipboard With Every Keystroke is a Bug, Fix Coming

Friday July 3, 2020 1:08 pm PDT by
iOS 14 introduces a feature that alerts users when apps access their clipboards, and tons of apps have been caught clipboard snooping. LinkedIn is one of the iOS apps that has been reading user clipboards, and iPhone owners have complained that the app copies the contents of the clipboard with every keystroke. LinkedIn is copying the contents of my clipboard every keystroke. IOS 14 allows ...