Consider using notification badging for WebAPKs in Android O |
||||||
Issue descriptionFor 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.
,
Mar 14 2017
,
Jun 2 2017
Let's make this public :).
,
Jun 2 2017
,
Jun 23 2017
I should note that we do get the fancy bubble already for WebApks, but the site can't customize it :(
,
Jun 26 2017
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.
,
Jun 26 2017
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
,
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?
,
Jun 26 2017
Sure, I think we could offer an opt-out / potential customization opportunities (I haven't looked at what android provides)
,
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.
,
Jul 27 2017
,
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).
,
Feb 15 2018
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by rolfe@chromium.org
, Jan 26 2017