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

Issue 685806 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Add UMA for push permission disabled in WebAPKs

Project Member Reported by owe...@chromium.org, Jan 26 2017

Issue description

Currently if users disable the push permission in Android Settings for WebAPKs, Chrome isn't aware of this so can't reflect it in Chrome's permissions, can't unsubscribe from GCM etc.

This results in sites with Notifications disabled in Android, but enabled in Chrome being able to send push messages that run script but never show a notification which is obviously very undesirable.

Resolving that high level issue is fairly urgent, I suggest for M57 we implement UMA to record whenever a user disables notifications from a WebAPK so we can at least begin to understand this issue.

Assigning to Sam for prioritization and triage, cc beverloo who can add anything I missed.
 

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

Status: Available (was: Untriaged)
Thanks Owen! It would be a waste, but IIUC I don't think developers could do anything malicious with it? (Since they couldn't depend on or even tell when notifications were disabled.)

I'm not sure we'll be able to get a broadcast when it's blocked, but I'm pretty sure we could poll. Would an UMA at open-time of whether they had been blocked work?

Comment 2 by peter@chromium.org, Jan 27 2017

Cc: -bever...@google.com peter@chromium.org
(Owen, please use peter@.)

Having *no* engagement with notifications is unexpected, since developers receive a `notificationclose` event in addition to the `notificationclick` event as well.

We currently measure this each time a notification is being shown. Following that pattern for WebAPKs would be grand.
Cc: -peter@chromium.org hanxi@chromium.org pkotw...@chromium.org sbirch@chromium.org
Labels: -Pri-1 -M-57 M-62 Pri-2
Owner: ranj@chromium.org
We've also want to start measuring engagement with WebApk features outside of launches. This nicely fits in that bucket (e.g. user disabled the webapk permission as opposed to breaking all push permissions for chrome)

We could either have the runtime library report back whether showing the notification was acceptable, or potentially (if it's accessible) chrome could just check whether the destination package has notification permission revoked

Comment 4 by peter@chromium.org, Sep 12 2017

Cc: peter@chromium.org
SOrry, wasn't intentional to remove you from cc :/
Project Member

Comment 6 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3e297acb7ca8a3c36b73028eea3352405a27cd3e

commit 3e297acb7ca8a3c36b73028eea3352405a27cd3e
Author: Ran Ji <ranj@chromium.org>
Date: Thu Sep 28 15:12:00 2017

Add WebAPK notification permission status UMA

Add a UMA to track whether user has WebAPK display notification permission
enabled when a WebAPK receives a notification

Bug:  685806 
Change-Id: I237947c44b8539e84384312b591be39d3759c4ed
Reviewed-on: https://chromium-review.googlesource.com/667002
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org>
Commit-Queue: Ran Ji <ranj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505026}
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/java/src/org/chromium/chrome/browser/metrics/WebApkUma.java
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkServiceClient.java
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/webapk/libs/runtime_library/BUILD.gn
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl
[add] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/OWNERS
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/chrome/android/webapk/libs/runtime_library_version.gni
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/tools/metrics/histograms/enums.xml
[modify] https://crrev.com/3e297acb7ca8a3c36b73028eea3352405a27cd3e/tools/metrics/histograms/histograms.xml

Comment 7 by ranj@chromium.org, Sep 28 2017

Status: Fixed (was: Available)
 Issue 683292  has been merged into this issue.

Sign in to add a comment