MicrosoftEdge / MSEdgeExplainers

Home for explainer documents originated by the Microsoft Edge team
Creative Commons Attribution 4.0 International
1.29k stars 205 forks source link

[Web Install] Rethink lack of ability to detect a successful install #656

Closed lukewarlow closed 1 year ago

lukewarlow commented 1 year ago

While I understand the privacy issues with detecting arbitrary web apps on the system. Would it be possible to allow a site to somehow detect apps that they themselves installed through this API. It's common practice for stores to show a different UI based on the installation status.

Alternatively could the promise return with a secondary promise that resolves once successfully installed. That way sites can store that themselves and keep track. But not be able to query in future?

diekus commented 1 year ago

+1. We've discussed (and frankly still are) considering the ability to track a successful install. This is key for attribution and also just to adapt the UX of the origin web site after the installation. Plenty of use cases, we're evaluating what's the best way of doing this, but it is something I'd like to do.

diekus commented 1 year ago

Hey @lukewarlow, the latest explainer details that the promise will return if the app is installed. This would allow to detect a successful installation. Let me know if this seems useful with a thumbs up if possible and I'll close the issue if so!