5 ms·
Does Android not have the concept of “local notifications” where you can tell the OS to schedule a notification to be sent to the app to wake it up instead of b
by scarface74 8y ago
Does Android not have the concept of “local notifications” where you can tell the OS to schedule a notification to be sent to the app to wake it up instead of being in the background the whole time?
- veeti 8y agoYes, and these manufacturer optimizations often break them.
- richardwhiuk 8y agoIt does - the one that works properly is https://developer.android.com/reference/android/app/AlarmManager#setExactAndAllowWhileIdle(int,%20long,%20android.app.PendingIntent) https://developer.android.com/reference/android/app/AlarmMan... However, the implementations of the API are questionable. Some calls to that API on some OEMs device round alarms to the nearest minute, some to the nearest ten minutes.
- colejohnson66 8y ago> Some calls to that API on some OEMs device round alarms to the nearest minute, some to the nearest ten minutes. WHY? What benefit does that serve?
- TheCoelacanth 8y agoProbably a crude way to stop apps from waking themselves every minute.
- WrtCdEvrydy 8y ago'Performance' Edit: It's become the new '911'... Family Guy Joke!
- apexalpha 8y ago>WHY? Because China. Having lived in China for a few months with an Android phone I can with absolute certainty tell you that this is needed over there. The amount of garbage apps, even from big companies like baidu is enourmous! And without a Google playstore, or play services, or play safety thing it is an absolute wild-west of background alarms, API calls, battery draining and whatnot.
- mfoy_ 8y agoSorry, how does rounding to the nearest minute or nearest TEN minutes solve any problems? Like are apps setting alarms for every 3 seconds or something for no reason??
- apexalpha 8y agoYes. Rounding to 10 min means you fire up the cpu and do all apps at once then go idle.
- mfoy_ 8y agoOh, so when we say "alarms" we mean "background processes that occur at set intervals"? Not literally "alarms", like the ones that ring?
- richardwhiuk 8y agoBoth.
- arantius 8y agoLimits the potential battery impact. Without this restriction, how long before an app maker schedules their alarm every millisecond?
- richardwhiuk 8y agoRounding timers can greatly increase battery life, at the expense of apps not working - but who checks that apps work on their phone before buying it?
- detaro 8y agoIt has, but from what I've read some of these "optimizers" helpfully "optimize" the scheduled notifications away or move them around in time.
- whouweling 8y agoAs others replied; it does. But the API does not behave consistent on different brands and API levels. Also some manufacturers cancel alarms when the user swipes away an app (which some users do constantly to keep the recent apps list "clean")
- jdbernard 8y agoI'm one of those users. The visual clutter leads to mental clutter. Having a "clean" notification bar makes it easier to ignore the pavlovian "check your phone!" conditioning that has built up over time. I appreciate that in some cases apps need to be in the notification bar in order to remain running. I also appreciate those like Tasker that have the option to hide their icons or use "empty" icons (so nothing shows).
- deleted 8y ago[deleted]