Weijing Jay Lin
Weijing Jay Lin

Reputation: 3238

can ios safari access bluetooth device?

I'm working on a location related project. I found that iOS has iBeacon which can help the app to get the location data. I want to know if iOS Safari does have the access to it? Or any other similar bluetooth device which can be accessed?

Upvotes: 13

Views: 12857

Answers (2)

Shayne
Shayne

Reputation: 1624

Not yet. There is a proposal in W3C for a "web-bluetooth" specification which has been implemented Chrome, Edge, Samsung Internet, Opera and chrome-for-android browsers. Like all these things, it'll take time for the committees to spin their wheels and for the browser makers to decide if they want to support it , and then implement it.

MDN docs: https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API

Upvotes: 4

Gordon Williams
Gordon Williams

Reputation: 1886

Apple don't have this built in to Safari (yet), however there is a Web Browser app called WebBLE that implements 'Web Bluetooth' mentioned by Shayne.

Currently the app only supports a subset of the standard, but it's more than enough for most tasks. It's also Open Source so you could add it to a WebView in your own app if needed.

Having said all that, currently I don't believe Web Bluetooth supports accessing Advertising data - so while you can connect to Bluetooth LE devices and interact with them, you may not be able to get the actual Advertisements (which is kind of the point of iBeacon).

Upvotes: 4

Related Questions