You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Explainer says if the app is already installed, the User Agent can decide how to handle this, and "for example", the promise can resolve with kSuccess if the app launches, and kAbort if it doesn't.
We should clarify that the user agent is only in control of the UX behavior in this case (ie. showing a dialog).
The promise resolution should be clearly defined by the spec.
The promise should resolve with kSuccess if the app is installed, independent of whether it launched, or the dialog was shown, etc. (This prevents the developer from knowing whether the app was previously installed)
The text was updated successfully, but these errors were encountered:
There is a concern about revealing install status to a page without any user prompt or confirmation. The page may have misled the user into making the user action that initiated the navigator.install call.
If getInstalledRelatedApps allows a page to know if the app it is in scope of is installed without any user prompts, the above concern is moot. For the current-document install scenario where the app is already installed, we could just let the navigator.install's promise resolve with the information that the app is installed without any further user confirmation.
For the case where the page is installing an app it cannot detect with getInstalledRelatedApps, we should require user confirmation.
Currently, the Explainer says if the app is already installed, the User Agent can decide how to handle this, and "for example", the promise can resolve with kSuccess if the app launches, and kAbort if it doesn't.
The text was updated successfully, but these errors were encountered: