Facebook App, Background and Battery

Discussion in 'iOS 9' started by /V\acpower, Aug 23, 2015.

  1. /V\acpower macrumors 6502a

    Joined:
    Jul 31, 2007
    #1
    Hello !

    I use the last iOS 9 beta on my iPhone 5S.

    I noticed that sometimes my battery seems to drain really really if I don't plug the phone overnight.

    For example, this night I went from 95% battery to 20% when I woke up.

    The Battery usage in the setting app tells me that Facebook have 10 hours of background activity, even though I have disabled background activité for almost every app, including facebook, long ago (and just checked and they still are disabled).

    I was wondering, is this a known bug in the BETA ?
     
  2. penajmz macrumors 68030

    penajmz

    Joined:
    Sep 11, 2008
    Location:
    New York City
    #2
    Because background refresh is different that the app being in the background like Facebook stays. Facebook is poorly coded. I usually force quit it to stop it from draining my battery.
     
  3. kevo0822 macrumors regular

    Joined:
    Jul 13, 2007
    Location:
    New England
    #3
    I have this happen very often... and it's infuriating! Even though background refresh is turned off, the app still has background activity that is KILLING my battery!
     
  4. luckydcxx macrumors 65816

    luckydcxx

    Joined:
    Jun 13, 2013
    #4
    also Facebook crashes very often when scrolling on my 6
     
  5. C DM macrumors Westmere

    Joined:
    Oct 17, 2011
    #5
    The app can run in the background unrelated to background refresh. If you want to make sure it doesn't happen, close out the app when you are not using it.
     
  6. kevo0822 macrumors regular

    Joined:
    Jul 13, 2007
    Location:
    New England
    #6
    I'm aware of how it works... I just shouldn't HAVE to close out the app every time in order to keep it from chewing through battery.
     
  7. C DM macrumors Westmere

    Joined:
    Oct 17, 2011
    #7
    Of course there's certainly that. But that's more of an app issue rather than an iOS one (although the beta aspect might have something to do with it as well).
     
  8. bushido Suspended

    bushido

    Joined:
    Mar 26, 2008
    Location:
    Germany
    #8
    i deleted their stupid app a while ago and replaced it with the mobile site on my home screen. another advantage is that the mobile site stays at "most recent" where the app always reverted back to that utterly useless "top news" crap
     
  9. LunarFalcon macrumors member

    Joined:
    Dec 3, 2007
    #9
    I have the same problem with the FB app. So annoying. I get much better battery life when I kill the FB app.
     
  10. zorinlynx macrumors 601

    zorinlynx

    Joined:
    May 31, 2007
    Location:
    Florida, USA
    #10
    I wonder if this might be the problem that so many people are having with iOS 9 beta.

    I rarely use Facebook, and my battery life on iOS 9 has been stellar.

    I wonder how Facebook can run in the background like that? iOS is supposed to kill apps that keep running in the background wasting battery.
     
  11. GreyOS macrumors 68030

    GreyOS

    Joined:
    Apr 12, 2012
    #11
    I have wondered what it is doing too and how it is getting away with it when BAR is disabled

    apps are given 10 minutes at most before they are suspended. could it be that if you open it frequently for just a few seconds, FB uses those full 10 minutes? a few minutes use in the day could add up to hours of background time

    apps that use the following background processes can be kept alive

    audio
    location
    voip
    others?

    I don't think FB has any legit reason
     
  12. C DM macrumors Westmere

    Joined:
    Oct 17, 2011
    #12
    Don't think BAR has much to do with it, at least not as much as the group of apps that can stay in the background longer than 10 minutes--perhaps Facebook registers itself as being VoIP capable or supporting background audio or something like that (whether actually correctly or not) and that allows it to run in the background indefinitely. Perhaps it's some sort of a bug, either in Facebook app and/or iOS itself that is allowing for something like that.
     
  13. Nikhil72 macrumors 6502a

    Joined:
    Oct 21, 2005
    #13

    I remember reading that Facebook uses a VoIP process to keep the app active in the background
     
  14. adnbek macrumors 65816

    adnbek

    Joined:
    Oct 22, 2011
    Location:
    Montreal, Quebec
    #14
    FB cheats by using location services to continue running in the background, even if background app refresh is off. Disable location services for FB and it'll stop being such a pig with resources while backgrounded.
     
  15. GreyOS macrumors 68030

    GreyOS

    Joined:
    Apr 12, 2012
    #15
    Nope, I have not enabled Facebook location services - it hasn't even requested it yet, so it's not in the Privacy > Location Services list.
    So there is no legitimate reason then, as I speculated? Facebook doesn't have any VoIP, only its sister app, Messenger. Apple should not let Facebook submit their app with this.
     
  16. Nikhil72 macrumors 6502a

    Joined:
    Oct 21, 2005
    #16
    As far as I know, no legitimate reason. And the VoIP thing may not be true now that messenger is separated. It was definitely true when they were all integrated
     
  17. friednoodles macrumors regular

    Joined:
    Feb 4, 2014
    #17
    I've experienced this in iOS 8 and I have the answer to this one:

    If you have push notifications enabled for Facebook, that's how it's doing it. Facebook is misusing "content-available" push notifications, which are silent push notifications designed to allow a suspended app to be woken up in the background to fetch new data.

    This ability is available even if the app has background refresh turned off, as long as it was simply suspended by closing it in the normal way. Terminating the app completely by swiping it away prevents resumption of an app via "content-available" notifications (and also by background app refresh if it's enabled).

    So if you simply close Facebook and don't terminate it by swiping it away, and you have push notifications enabled for Facebook, it can and will wake up in the background, even if background app refresh is off.
     
  18. GreyOS macrumors 68030

    GreyOS

    Joined:
    Apr 12, 2012
    #18
    Thank you, very informative, and very likely gets to the bottom of it. I was aware of notifications being able to trigger fetches, as well as ability for silent notifications, but assumed this was controlled by background app refresh.

    I personally believe Apple should only allow this functionality when BAR is enabled.

    edit: if this is really the case when I feel this page is misleading: "[Background App Refresh] lets apps check for new content and download updates, or retrieve updated content in the background when they receive push notifications."
     
  19. Grayburn macrumors 68000

    Grayburn

    Joined:
    Jul 12, 2010
    Location:
    London, England
    #19
    I disagree, i dont have FB notifications on or BAR yet i still get various hours usage in the background.
     
  20. friednoodles macrumors regular

    Joined:
    Feb 4, 2014
    #20
    Sorry, I should have worded it better: I meant to say that I believe this ability is not intended behaviour from iOS.

    Turning off background app refresh is supposed to stop silent "content-available" notifications as well, even if notifications are enabled, but that isn't my experience.

    Even Apple's session video from this year's WWDC says that silent notifications are controlled by background app refresh, and yet, here we are: if Facebook is suspended, even if background app refresh turned off it still seems to be able to wake up. For me, disabling push notifications fixed the issue.
     
  21. friednoodles macrumors regular

    Joined:
    Feb 4, 2014
    #21
    After watching the WWDC session video again (2015 What's New in Notifications session), they also say that silent "content-available" notifications are available to apps by default, even without the user giving the app permission to use notifications. However, background app refresh is supposed to disable delivery of them (according to the session, silent notifications are the mechanism behind background app refresh).

    So I believe this is unintended behaviour, a bug which is allowing the app to receive "content-available" notifications (which you can receive even without giving an app permission to use notifications - that's by design according to the session video), even if background app refresh is off.

    The session video isn't clear on whether granting permission to notifications and then turning them off also prevents silent notifications, but if it does that would explain why turning them off after having them enabled fixed it for me. The session seems to suggest the user facing notifications settings don't have any impact on silent "content-available" notifications and that they're controlled strictly by background app refresh.
     
  22. GreyOS macrumors 68030

    GreyOS

    Joined:
    Apr 12, 2012
    #22
    Thanks for the clarification.

    For a minute I wondered, perhaps 'visible' push notifications can trigger background processes without BAR being enabled (being in a slightly different category to 'silent' notifications) but I don't think I get enough visible notifications in the day for that to explain it.

    I will try submitting feedback to Apple...
     
  23. adnbek macrumors 65816

    adnbek

    Joined:
    Oct 22, 2011
    Location:
    Montreal, Quebec
    #23
    The good thing is when iOS 9 is released, more and more will be aware of how much of a pig the FB app is and hopefully force them to rewrite it.
     
  24. Biscotti macrumors regular

    Joined:
    Jun 25, 2008
    #24
    After a weekend (Friday - Monday) of not using my iPad I came back to this:

    *see attached*

    Either going to delete facebook app or turn off notifications.
     

    Attached Files:

  25. GreyOS macrumors 68030

    GreyOS

    Joined:
    Apr 12, 2012
    #25
    I've submitted feedback to Apple about the Facebook app being very background hungry, with no good reason to. As friednoodles suggested it seems like an iOS bug, still present in 9.1 PB1
     

Share This Page