Hacker News new | ask | show | jobs
by pjmlp 2749 days ago
You are missing an important thing on how PWA are supposed to be coded.

PWAs are supposed to check the avaialbe sandbox APIs and adapt accordingly.

So if a PWA is running on Windows on an UWP context, it can check it and then access UWP APIs, if they are running on Chrome OS instead, then check accordingly and act upon it.

Finally if only play old HTML 5 APIs are available, then make the best of it.

That is the whole point of Progressive, to enhance the experience depending on the surrounding context.

1 comments

I thought the point of PWA would be ‘free’ compatibility with every OS that can run PWA. Checking for several different APIs and using the appropriate one seems counter to this.
The point of PWAs is to offer native like experiences with web technologies if you pay attention to talks done by Chrome/ChromeOS/UWP teams.

Browser specific APIs are a thing since the Web became a platform instead of plain hypertext documents.