Facebook’s official app is amongst the most used apps on any mobile platform today, and it althugh contributes to a major portion of the on-screen time on our phones and tablets. Some users while using Facebook app is understabable given the fact that the battery complexity of the social network used a lot, but a major battery drain is unacceptable for obvious reasons. Most iOS users faced this issue, be it on iPhone or on iPad, Facebook after intially aknowledging has now released an app update to fix the problem.
If you’re one of those experiencing this unusaul battery drain could tell, thanks to the battery analytics in iOS 9, that the app was running in the background for quite a few hours, in some cases almost double the on-screen time of the app. All of this was transpiring despite users having turned off the ‘Background App Refresh’ in iOS for Facebook.
Reasearchers started digging up on any potential clues that could explain why the most downloaded app on the iOS App Store was behaving in such an erratic manner. One possible description was the use of silent audio in the background, and as it turned out, that hypotesis was right on the mark.
Considering its the fact then it has started grabbing the battery juice since Facebook rolled out its unnecessary video playing segement on its network, and not only it is strucking up the screens on iOS, but on Android devices and the Web as well. With videos being played automatically as your browsr through your Facebook News Feed, there were bound to be a host of users becoming a victim to the bug as pointed out by Grant. He assured that the drain hadn’t come from the app’s Location History feature or “anything related to location,” as some had speculated, and stressed that Location History was an optional feature.
According to Ari Grant, an Engineering Manager at Facebook:
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.
Another issue pointed out by Grant had something to do with a “CPU spin” code. 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.
No more tips and tricks to fix this issue as Facebook has officially released version 42.0 of its iOS app, and it should be showing up as pending update in the App Store. Get more battery life, by updating. Go for it right now.