News for hackers. Stuff that matters.
Re:What PWA Can Do Today by martinald on Monday January 08, 2024 @11:22AM (#38914258)
Re:What PWA Can Do Today by JimDabell on Monday January 08, 2024 @11:47AM (#38914680)
This is another Google-authored specification, implemented only by Google, which is not currently a web standard. It’s not just Safari that doesn’t support it; Firefox doesn’t either. It’s a Blink-only API.

> Editors:

> Miguel Casas-Sanchez (Google LLC)

> Reilly Grant (Google LLC)

> Status of this document

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

— https://wicg.github.io/shape-detection-api/

Re:What PWA Can Do Today by sevenf0ur on Monday January 08, 2024 @11:35AM (#38914502)
Safari doesn't support that API whatsoever so a third party JS library is really your only option. The landscape of open source barcode detection libraries is bleak at the moment.
Re:What PWA Can Do Today by asveikau on Monday January 08, 2024 @12:10PM (#38915009)
Can't you take a C library and compile to JS?
Re:What PWA Can Do Today by cicko on Monday January 08, 2024 @02:12PM (#38916617)
Wasm should also work, no?
Re:What PWA Can Do Today by martinald on Monday January 08, 2024 @11:40AM (#38914564)
That's a shame. Works really well on Android.
Re:What PWA Can Do Today by dannymoerkerke on Monday January 08, 2024 @06:01PM (#38919648)
It does since iOS 17. For now you’ll have to enable it manually through Settings > Safari > Advanced > Feature Flags > Shape Detection API but I expect it to be enabled by default soon.