Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 604843bd authored by Benjamin Miller's avatar Benjamin Miller
Browse files

Docs: added a note about about notification listeners and work profiles.

Stated that NotificationListenerService is ignored when running in the work profile.
A NotificationListenerService might not see notifications from the work profile if an IT admin blocks personal apps.
Staged at:
  http://go/dac-stage/reference/android/service/notification/NotificationListenerService.html

Test: Run make ds-docs and review
Bug: 67907973
Change-Id: Ie37cf8f576dc228e6c8ba074f389595fdebcdf9c
parent f157b9f9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -85,7 +85,10 @@ import java.util.List;
 * or after {@link #onListenerDisconnected()}.
 * </p>
 * <p> Notification listeners cannot get notification access or be bound by the system on
 * {@link ActivityManager#isLowRamDevice() low ram} devices</p>
 * {@linkplain ActivityManager#isLowRamDevice() low-RAM} devices. The system also ignores
 * notification listeners running in a work profile. A
 * {@link android.app.admin.DevicePolicyManager} might block notifications originating from a work
 * profile.</p>
 */
public abstract class NotificationListenerService extends Service {