hn.today

Show HN: An open source webbluetooth and NFC browser for iOS

github.com15 points0 comments
Screenshot of Show HN: An open source webbluetooth and NFC browser for iOS

Wand Browser is an open-source iOS browser built for developers who need to test web apps that interact with nearby hardware. It lets an HTTPS page use JavaScript Web Bluetooth to discover and connect to Bluetooth Low Energy devices, work with GATT services and characteristics, and receive notifications. It also supports reading and writing NDEF tags through Web NFC, plus permission-controlled camera video via the browser’s media APIs. Developers can reopen recent test pages from an on-device history. Wand mediates access: users select which Bluetooth device a site can use and approve NFC requests, while hardware permissions are cleared when a document changes, reloads, the app goes into the background, or access is revoked in site controls.

The project is an early implementation, not a full mobile browser replacement or complete implementation of either web standard. Hardware and camera features require a foreground session on a top-level HTTPS page; NFC is limited to NDEF, and developers need to compare their app’s API calls with Wand’s bridge. BLE and NFC must be tested on a physical iPhone with compatible devices or tags; the simulator can exercise browser flows and bridge logic but cannot test the radios. The app requires iOS 18 or later and can be built from its included Xcode project without generating project files or installing packages. Xcode tests use hosted HTTPS fixtures, and optional Node.js tests cover the standalone bridge and SDK. The code is MIT-licensed.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.