News for hackers. Stuff that matters.
Re:What PWA Can Do Today by SPBS on Monday January 08, 2024 @10:11AM (#38913038)
Call me back when PWAs can be registered as share targets on iOS (i.e. it appears as an app on the share sheet when you click "share" on a web page). I really want the ability to bookmark sites I browse on my phone and save it to a self-hosted web application.
Re:What PWA Can Do Today by spiffytech on Monday January 08, 2024 @11:04AM (#38913940)
Web Share Target API isn't a good experience on Android either.

Partly because it only works if the user visits your site with Chrome for Android (even Chromium browsers don't work).

And partly because receiving a share unrecoverably takes over whatever the user is doing. If the user opens something from your PWA (an external link, another app) and then shares back into your PWA, whatever they were looking at gets killed and your PWA navigates to the share target.

I'm building a web app built around sharing and I'm going to have to wrap it in an Android app solely to get around this.

Re:What PWA Can Do Today by zx_q12 on Monday January 08, 2024 @12:10PM (#38915008)
If you just want something for yourself, you can set that up with a Shortcut and the "Get contents of url" action. You can then configure the shortcut to be available in the Share page so you could then easily share links/whatever to your self hosted app
Re:What PWA Can Do Today by wojciechpolak on Monday January 08, 2024 @10:49AM (#38913681)
Web Share Target API (manifest: share_target) - it allows a website to specify itself as a share target. Of course, it's not yet supported on iOS.
Re:What PWA Can Do Today by JimDabell on Monday January 08, 2024 @11:17AM (#38914181)
This is not a web standard. Google wrote the specification and only Google have implemented it. It’s an unofficial draft:

> Editors:

> Matt Giuca (Google Inc.)

> Eric Willigers (Google Inc.)

> Status of This Document

> This specification was published by the Web Incubator Community Group. It is not a W3C Standard nor is it on the W3C Standards Track

— https://w3c.github.io/web-share-target/level-2/

Firefox doesn’t implement it either: https://bugzilla.mozilla.org/show_bug.cgi?id=1476515

Apple raised a concern about spoofing which seems to have gone unaddressed by the spec authors in over a year: https://github.com/w3c/web-share-target/issues/109

This may yet turn into a web standard given more work, but please don’t hold up a Google spec. implemented only by Google as if it were a part of the web platform that Apple are late in implementing.

Re:What PWA Can Do Today by bensecure on Monday January 08, 2024 @01:25PM (#38915987)
The only relevant browsers on mobile are google's and apple's, and (modern) web standards are created by enough popular browsers implementing them. Literally all it would take for this to be a reliable web standard would be apple choosing to implement it.
Re:What PWA Can Do Today by FridgeSeal on Monday January 08, 2024 @08:51PM (#38921206)
Well until that point, and until it’s ratified as one, it’s not a web standard, so you can’t get disappointed that nobody else implements it.
Re:What PWA Can Do Today by JimDabell on Tuesday January 09, 2024 @08:54AM (#38926162)
You can apply that logic to literally anything Google thinks up. Google writes something in a spec and no matter how stupid, insecure, or privacy violating it is, by this logic Apple is now falling behind and holding the web back because all it would take to make it a standard is for Apple to do what Google wants. Why are you so keen to hand the web platform entirely over to Google?
Re:What PWA Can Do Today by taknil on Monday January 08, 2024 @10:47AM (#38913645)
this is foreseen to come eventually, the APIs are there https://web.dev/articles/web-share?hl=en