Hacker News new | ask | show | jobs
by sevenf0ur 899 days ago
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.
3 comments

Can't you take a C library and compile to JS?
Wasm should also work, no?
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.
That's a shame. Works really well on Android.