MSEdgeExplainers icon indicating copy to clipboard operation
MSEdgeExplainers copied to clipboard

[Web Install] Similarities between `getInstalledApps()` and `getInstalledRelatedApps()`

Open amandabaker opened this issue 2 months ago • 4 comments

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)

amandabaker avatar Apr 29 '24 17:04 amandabaker