New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 843567 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Feature



Sign in to add a comment

Expose NotificationManager.getActiveNotifications() in TrustedWebActivityClient

Project Member Reported by bauerb@chromium.org, May 16 2018

Issue description

For internal bookkeeping purposes, the notification system might have to know which notifications are currently showing. For Trusted Web Activities, it needs to find that out via the TrustedWebActivityClient.

It should be relatively straightforward to add another method that delegates to NotificationManager.getActiveNotifications() in the TWA.
 

Comment 1 by peconn@chromium.org, May 17 2018

Cc: -peconn@chromium.org bauerb@chromium.org
Owner: peconn@chromium.org
NotificationManager.getActiveNotifications() only exists in API 23+. API-wise what do you think would be better on pre-23 devices - returning an empty list or crashing?

Comment 2 by bauerb@chromium.org, May 17 2018

Status: Assigned (was: Available)
I would probably return an error of *some* form (so that we don't pretend the list of notifications really is empty), but I don't have strong feelings on what form that would take -- it could be an exception or an error value.

Comment 4 by peconn@chromium.org, May 17 2018

Status: Fixed (was: Assigned)

Sign in to add a comment