copyparty icon indicating copy to clipboard operation
copyparty copied to clipboard

html5 / js Web Share API PWA

Open clach04 opened this issue 1 year ago • 1 comments

Idea would be to write in the web client a small progressive web app (PWA) that implements the Share Web API client. This would mean users could install fro the web browser a small share application essentially what Party-Up does with significantly less code. Potentially also allows multiple share to apps to be installed (one per server, i.e. no need to edit config when switching between servers).

I believe this would be Android ONLY. I'm not sure what (if any plans) there are for Apple iOS implementations (I don;t have a device to test with).

This has the potential to replace Party-Up for some uses cases (unclear if this is a pro or a con, Party-Up works great so far with my experiments I'm not suggesting is needs to be replaced), specifically https.

Disadvantage of Web Share API is that it (understandably) requires https, Party-Up can work with plain http as well as https, so I don't think this idea would ever remove the need for Party-Up.

Unclear about basic-auth implications.

Resources

  • https://dev.to/nicomartin/share-target-api-5263
  • https://developer.mozilla.org/en-US/docs/Web/API/Web_Share_API
  • https://web.dev/web-share/
  • https://github.com/GoogleChrome/samples/blob/gh-pages/web-share/README.md#web-share-demo
  • https://github.com/GoogleChromeLabs/squoosh
  • https://developer.chrome.com/articles/web-share-target/
  • https://w3c.github.io/web-share-target/

clach04 avatar Jun 07 '23 03:06 clach04