Skip to content

[Web Install] Similarities between getInstalledApps() and getInstalledRelatedApps() #804

Open
@amandabaker

Description

@amandabaker

Copied from https://docs.google.com/document/d/12nSXJLm8mW0gWZ_yjlXfrV8r9gwJliVt4WVa-209-KA/edit?disco=AAABMhvdaw0

[https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getInstalledRelatedApps](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getInstalledRelatedApps%5d(https:/www.google.com/url?q=https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getInstalledRelatedApps&sa=D&source=docs&ust=1714410367450615&usg=AOvVaw0K87k_bi3F1p0ywGw1gXjK)) -- it roughly does the same thing as this and it would be a shame to ship two APIs so similar (and with such similar names).

Although the new method navigator.getInstalledApps() intended for use with the Web Install API is different in function from navigator.getInstalledRelatedApps(), the name similarity could be confusing for developers. Should the API be renamed or combined with the existing getInstalledRelatedApps()?

Note the difference in intended functionality:

  • getInstalledApps(): returns a list of the apps installed from this origin via the Web Install API
  • getInstalledRelatedApps(): returns a list of installed apps on the device that are related to the current origin (as defined by "related_applications" in the manifest)

Metadata

Metadata

Assignees

Labels

Web Install APIDeclarative install for web apps from a web app.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions