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

Issue 626366 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Clicking an action button on notifications doesn't hide the notification shade

Project Member Reported by owe...@chromium.org, Jul 7 2016

Issue description

What steps will reproduce the problem?
(1) Show a notification on Android with action buttons
(2) Set the action button to open a new window
(3) Tap the action button

What is the expected output?
- The page opens and the notifications shade hides

What do you see instead?
- The page opens in the background, but the notification shade doesn't hide
 

Comment 1 by peter@chromium.org, Jul 15 2016

Cc: peter@chromium.org
Owner: joh...@chromium.org
Status: Assigned (was: Untriaged)
John, would you mind taking a look at this?
I've put together a quick test case here:

https://gdnmobilelab.github.io/tests-for-google/action-tap-focus/

also attached.
action-tap-focus.zip
1.3 KB Download

Comment 3 by awdf@google.com, Aug 25 2016

Looks like this happens because there's different shade-hiding behaviour for notification actions compared to normal notification clicks when they trigger an intent to start a broadcast - I was able to replicate this in a dummy app with a simple broadcast receiver that starts a blank activity.

The comment on this question confirms it occurs when using broadcasts instead of starting activities directly: http://stackoverflow.com/questions/18261969/clicking-android-notification-actions-does-not-close-notification-drawer?noredirect=1&lq=1 .

The fix won't be as trivial as the top answer there though (dismissing all system dialogs whenever a broadcast is received by the NotificationService), because for some actions we *want* to keep the notification drawer open, e.g. if the website uses notification actions for a quiz within the drawer.
Cc: joh...@chromium.org awdf@chromium.org
Labels: -Pri-2 Pri-3
Owner: ----
Status: Available (was: Assigned)
I'm probably not going to get around to this anytime soon.
Project Member

Comment 5 by sheriffbot@chromium.org, Mar 9 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by awdf@chromium.org, Mar 22 2018

Owner: awdf@chromium.org
Status: Assigned (was: Untriaged)
Further to #3, the precise behaviour we'd like would be that whenever a service worker tells Chrome to open/focus a window in response to a notification click, Chrome should dismiss the notification shade if it's showing.

also re #3, I think I may have been a little misleading back in Aug '16 - Chrome actually sets a pending broadcast intent for *both* notification content intents and action button intents, so it must be Android treating these intents differently. If that's the case there may not be much we can do here.
Owner: peter@chromium.org
Spoke to the Android team about this and they said it should work to send a 'CLOSE_ALL_SYSTEM_DIALOGS' intent to hide the shade, however this will also close all system dialogs and recents if showing.

(internal comment thread: https://docs.google.com/a/google.com/document/d/1DkZKAZjt0fqqdBdpJOKufzixlXryGlUZOQQoI0koic0/edit?disco=AAAAB18tyOI )

Given this bug is caused by an underlying Android inconsistency, I suggest we close it as 'WAI'.
Status: WontFix (was: Assigned)
Agreed.

Sign in to add a comment