You are reading a single comment by @cyclotron3k and its replies. Click here to read the full conversation.
  • Notifications - the implementation is not ideal; I can only poll every 15 minutes, but I've been getting a steady stream of LFGSS notifications on my phone for the last few weeks now and it's really fun. One day I want to do push notifications, but that would require some changes on the back end.

    Does that mean more background battery use (app waking up, checking, finding no updates, going back to sleep)? If I turn off all notifications in the app does it stop polling?

  • Good question.

    It does indeed use more power than push notifications, but the difference should be negligible. My understanding is that Android will batch these events up from all apps, and run them all at the same time.

    I've also noticed, on my phone at least, it doesn't bother running the scheduled task at night, and I suddenly get a flurry of notifications a few seconds after I pick up my phone for the first time in the morning. So evidently Android is very aggressively managing when the scheduled tasks actually run.

    You can also go into settings have a look at which apps are using the battery, and how much time they spend running in the background. I just looked now, and I'm pleased to see the app is pretty easy on the battery and has clocked "less than a min" of background task time, over the last four hours.

    Turning off all notifications does not disable the polling - only logging out does that. And that's a very good point you raise. I'll add it to the list of things to do.

About

Avatar for cyclotron3k @cyclotron3k started