Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Add an API for installing a handler #12

@mgiuca

Description

@mgiuca

Currently, handlers are specified declaratively in the web manifest. This is great for indexing, but it means the browser needs to decide when to prompt the user to install a handler. (On first page load? After some time using the site? When the site is added to home screen?)

Instead, we should add an API that lets the web app programmatically request to prompt the user to install the handler. Note: The handler would still need to be declaratively specified; the API would just be a trigger to install. Then the website can provide a contextual button where the user requests to install the handler.

Downsides: We may actually want to leave the decision to browser policy (e.g., in Chrome, when the user clicks "Add to home screen" or "Add to desktop", and tie handling to app installation). This may be giving too much control to the website.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions