TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Facebook iOS App Battery Explanation

76 pointsby milenover 9 years ago

10 comments

jobuover 9 years ago
<i>&quot;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&#x27;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.&quot;</i><p>So after all the accusations of Facebook exploiting background audio to steal cycles for downloading content or tracking people&#x27;s location it&#x27;s just another case of Hanlon&#x27;s Razor.
评论 #10435879 未加载
评论 #10436904 未加载
评论 #10436009 未加载
matsurover 9 years ago
We (Spire, building breath tracking wearables) have an unfortunate amount of experience troubleshooting these issues. The developer tooling around measuring battery drain&#x2F;energy usage is not useful for debugging this sort of thing.<p>We ended up wiring a disassembled iPhone to battery simulation hardware and are now able to measure battery drain while stepping through a debugger&#x2F;pushing the phone through an integration test to identify power usage regressions.<p>Curious how other folks handle these issues.
评论 #10436029 未加载
评论 #10436464 未加载
评论 #10436868 未加载
评论 #10436062 未加载
josephpmayover 9 years ago
Importantly, this explains why a number of Facebook on iOS users were reporting that the app was showing background usage even when background refresh was turned off. Many people thought Facebook was using a private API to track people when they weren&#x27;t using the app. In reality, it was just a mistake. This is a great example of Hanlon&#x27;s Razor [1]<p>[1] &quot;Never attribute to malice that which is adequately explained by stupidity.&quot; <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Hanlon%27s_razor" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Hanlon%27s_razor</a>
评论 #10437121 未加载
zacwestover 9 years ago
It would be helpful if Apple included tracking on background time and other battery-usage metrics along with crash reporting for users that opt into it.<p>Facebook has no by-the-books way to realize some issues like this are happening, largely because iOS makes this difficult to watch.
评论 #10435783 未加载
评论 #10436909 未加载
epxover 9 years ago
Li-ion can&#x27;t handle our scale.
评论 #10436258 未加载
soccerdaveover 9 years ago
Doesn&#x27;t an iOS app have to declare that it is going to do background audio? If so, what was their original legitimate use case for having background audio?<p>Edit: Here&#x27;s a link to the apple docs that show apps have to declare what tasks they will perform in the background.<p><a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;ios&#x2F;documentation&#x2F;iPhone&#x2F;Conceptual&#x2F;iPhoneOSProgrammingGuide&#x2F;BackgroundExecution&#x2F;BackgroundExecution.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;ios&#x2F;documentation&#x2F;iPhone...</a>
评论 #10436907 未加载
评论 #10436332 未加载
评论 #10435995 未加载
wppickover 9 years ago
When I read the title I got excited because I thought that Apple had implemented some battery abstraction for iOS that gives a virtual battery to each application. Now I&#x27;m curious to know if there would be any benefit to something like that, or if it would be at all useful in any way?
评论 #10435974 未加载
orbiturover 9 years ago
I hope there&#x27;s a fix soon, because I&#x27;m tired of having to force-kill the app.<p>I don&#x27;t know what tipped me off that Facebook was the culprit but I was driving one day and my podcast went quiet, like a notification sound was about to happen. But nothing came and the audio stayed quiet for at least 30 seconds before I pulled over, opened the app list, and killed Facebook. Problem solved.<p>Also, coincidentally, I forgot to kill Facebook last night and when I picked up my phone this morning it was warm. Glad I remembered to leave it plugged in.
评论 #10436759 未加载
评论 #10438137 未加载
评论 #10436516 未加载
IBMover 9 years ago
Anyone know how to disable those Facebook notifications that say &quot;Do you know X?&quot;. Can&#x27;t find it in the options at all. Feels like an attempt to get engagement.
yelnatzover 9 years ago
I really want access to the code base so I can diff the changes.<p>I guess we&#x27;ll just have to trust this explanation?
评论 #10435728 未加载
评论 #10435744 未加载
评论 #10436938 未加载
评论 #10436004 未加载