clarify foreground service notification priority
This commit is contained in:
parent
5884da2ddb
commit
81c87b6691
@ -1247,11 +1247,14 @@
|
|||||||
<p>In order to properly implement either push messaging or frequent polling
|
<p>In order to properly implement either push messaging or frequent polling
|
||||||
themselves, an app needs to run a foreground service. This is displayed as a
|
themselves, an app needs to run a foreground service. This is displayed as a
|
||||||
persistent notification. It will normally be marked as a silent notification
|
persistent notification. It will normally be marked as a silent notification
|
||||||
with the lowest possible priority, so it will be collapsed at the bottom and
|
with the lowest possible default importance for a foreground service
|
||||||
won't show up as an icon in the status bar or on the lockscreen. A battery
|
(IMPORTANCE_LOW). It can be reduced to the lowest importance (IMPORTANCE_MIN)
|
||||||
optimization exception is also needed for the app to bypass device idle states
|
by the user if they set the notification channel to be collapsed which will
|
||||||
and run while the device is idle. If you can tolerate delays while the device
|
collapse it in the notification tray and it won't show up as an icon in the
|
||||||
is idle, then the battery optimization exception isn't mandatory.</p>
|
status bar or on the lockscreen anymore. A battery optimization exception is
|
||||||
|
also needed for the app to bypass device idle states and run while the device
|
||||||
|
is idle. If you can tolerate delays while the device is idle, then the battery
|
||||||
|
optimization exception isn't mandatory.</p>
|
||||||
|
|
||||||
<p>FairEmail and Signal are examples of apps using the proper approach of a
|
<p>FairEmail and Signal are examples of apps using the proper approach of a
|
||||||
foreground service combined with an optional battery optimization exception.
|
foreground service combined with an optional battery optimization exception.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user