Chromium Code Reviews
DescriptionChange Physical Web notification display behavior
Currently, we only display a notification when we go from 0 to 1
displayable URLs. The reason for this is that we don't want to
needlessly displayed a notification if the user recently swiped it
away. However, in a URL dense environment (e.g. a mall filled with
beacons), a user may not ever go from seeing 0 to 1 displayable URLs,
since they will always be around multiple. A single swipe away will
then leave them never seeing another notification.
This change displays a notification if we go from seeing 0 to 1
displayable URLs *or* if we see a displayable URL that does not exist
in our cache (i.e. a URL that has not been encountered for 24 hours.)
This behavior could be further refined, but this is a positive step
toward finding a balance between being there when desired and not
needlessly renotifying if a user has swiped away a notification.
BUG=596668
Committed: https://crrev.com/44ac07c8316385250002371bec549fc6621826ec
Cr-Commit-Position: refs/heads/master@{#396060}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Record updates for UMA #Patch Set 3 : Rebase #
Total comments: 2
Patch Set 4 : Fix variable name #Patch Set 5 : Handle case where URL was not previously resolved #Patch Set 6 : Record whether we've displayed in UrlInfo #
Total comments: 2
Patch Set 7 : Spell out "current" #
Messages
Total messages: 22 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||