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

Issue 638614 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 609258



Sign in to add a comment

Figure out what to do if user selects add-to-homescreen but WebAPK is already installed

Project Member Reported by pkotw...@chromium.org, Aug 17 2016

Issue description

Figure out what to do if user selects add-to-homescreen but WebAPK is already installed
 
 Issue 638616  has been merged into this issue.

Comment 2 by hanxi@chromium.org, Sep 1 2016

We could show a dialog or a toast that a WebAPK has been installed. For long term, we can have a "open" button on the dialog.
Labels: good-starter-bug
Labels: -good-starter-bug Hotlist-GoodFirstBug

Comment 5 by hanxi@chromium.org, Sep 15 2016

Cc: zpeng@chromium.org pkotw...@chromium.org yfried...@chromium.org sbirch@chromium.org
+sbirch@: do we show a toast or an app banner with "Open" button?

Another interesting question is: should we do the "installed check" before any "WebAPK-compatible check" for the site? That means, if the url falls into any WebAPK's scope, we won't do a WebAPK-compatible check but pointing the users to the installed WebAPK. In such case, it seems the app banner with "Open" button makes more sense. Any thought?
Xi, just to make sure that I am understanding correctly:

You are suggesting:
If a WebAPK is installed for the site and the user is viewing a page within the WebAPK's scope via Chrome instead of via the WebAPK we should:
- show an app banner with an "Open" button
- ignore any engagement checks

instead of

If a WebAPK is installed for a site and the user is viewing a page within the WebAPK's scope via Chrome instead of via the WebAPK:
The banner does not show
If a user selects "Add to Homescreen" from the menu, we show the banner with an "Open" button

Comment 7 by hanxi@chromium.org, Sep 15 2016

I am suggesting:
If a WebAPK is installed for the site, the user is viewing a page within the WebAPK's scope via Chrome instead of via the WebAPK and the user clicks "Add to Home screen" from menu item:
We should:
- show the app banner infobar with an "open" button

instead of
- show a toast "the webapk has been installed"

Since Chrome won't navigate to WebAPKs when typing from the omni box, it is possible that user is viewing a page within the webapk's scope via Chrome instead of the WebAPK. In such case, do we do the scope check before checking whether the site can be installed as a WebAPK.

As discussed offline, I think we should show the banner with an "open" button to point the user to the installed webapk and don't do the webapk-compatible check in AddToHomescreenManager.


Comment 8 by sbirch@chromium.org, Sep 15 2016

The proposed behavior for the menu makes sense to me. I don't think we should show the banner unless the user taps "Add to home screen" from the menu, however, as there are a variety of normal reasons you might be using a WebAPKed site while browsing and I don't think we need to push them into the WebAPK proper.

If we wanted to get fancy I think the ideal might be to turn "Add to home screen" into "Open <installed site?>" in the menu -- but no need to complicate things for v0 (and we still don't have a good noun to describe it anyways.)

Comment 9 by zpeng@chromium.org, Sep 19 2016

Cc: hanxi@chromium.org
Owner: zpeng@chromium.org
Status: Assigned (was: Untriaged)
For clarification, when the user clicks the button, I think one of the three scenarios will happen:
1) webapk is not installed,
2) webapk has been installed and up to date,
3) webapk has been installed but is not up to date,

so we change the behavior for scenario 2) & 3) to show an app banner infobar with an "open" button?
zpeng: Your proposal seems reasonable. I think that we should have the same handling for 2 & 3.

Comment 11 by hanxi@google.com, Sep 19 2016

I think it is ok to show the "open" button for both 2) and 3). If the installed WebApk is not up to date, the ManifestUpgradeDetector will check whether the WebAPK needs to update once the WebAPK is launched (using clicks the "open" button).
Status: Fixed (was: Assigned)

Sign in to add a comment