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

Issue 685159 link

Starred by 7 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocked on:
issue 719176
issue 700228



Sign in to add a comment

Consider using notification badging for WebAPKs in Android O

Project Member Reported by peter@chromium.org, Jan 25 2017

Issue description

For WebAPKs whose notifications are targeted and actionable, for example messaging and social networking sites, this could be a great addition.

https://docs.google.com/document/d/1QCu85YIFztCovh0sii2mLuoUbbC2uxnu2UJqOl5c8-Y/edit#heading=h.30q2ccij6dfz

The feature has to be enabled at channel creation time, so one option would be to introduce a Manifest option that acts as an opt-in.
 

Comment 1 by rolfe@chromium.org, Jan 26 2017

I support this from the UX side. Let me know if I can help at all.

Comment 2 by awdf@chromium.org, Mar 14 2017

Blockedon: 700228

Comment 3 by peter@chromium.org, Jun 2 2017

Labels: -Restrict-View-Google -OS-Linux
Let's make this public :).

Comment 4 by peter@chromium.org, Jun 2 2017

Cc: peter@chromium.org
 Issue 729113  has been merged into this issue.
I should note that we do get the fancy bubble already for WebApks, but the site can't customize it :(

Comment 6 by peter@chromium.org, Jun 26 2017

Cc: awdf@chromium.org
Is that Android's default behaviour for notifications posted without a channel? (+awdf)

We explicitly disable all sorts of bubbles for Chrome's notification channels.
I think so. Honestly as a user, I liked it :)
Keep in mind this is different than a generic chrome notification and without a site, it's unclear that the bubble is helpful. But for example for facebook webapk, that bubble is telling me something

Comment 8 by peter@chromium.org, Jun 26 2017

Yeah, I'm a fan too :). Maybe we should offer an opt-out instead of an opt-in if we think it's applicable to a majority of WebAPKs?
Sure, I think we could offer an opt-out / potential customization opportunities (I haven't looked at what android provides)

Comment 10 by awdf@chromium.org, Jun 26 2017

Android allows apps to specify for a given notification whether they wish the launcher to use the notification's big, small or no icon for the badge, via Notification.Builder.setBadgeIconType - this may or may not be respected by the launcher:

https://developer.android.com/reference/android/app/Notification.Builder.html#setBadgeIconType(int)

We currently call setShowBadge(false) on all notification channels before creating them, including the Sites channel for (non-web-apk) web notifications. I'm not sure what the default would be if we didn't explicitly call that, I think it changed at one point, and might depend on the launcher, so we call it explicitly to be sure that we don't ever show a dot on the chrome logo.
Blockedon: 719176

Comment 12 by awdf@chromium.org, Jul 28 2017

Small update to #10 - Android O now just shows a dot as the default badge, or a number if the app calls Notification.Builder.setNumber(). The icon type provided to setBadgeIconType is only displayed in the app-icon longpress menu (at least on the default Pixel launcher).

Comment 13 by k...@chromium.org, Feb 15 2018

Cc: -k...@chromium.org

Sign in to add a comment