问题
Is there any way to make a web page scan for beacons on iOS ? I know that no iOS web browser supports Web Bluetooth at the present. I even could not find any information about if Chrome team is planning to add support for Web Bluetooth for Chrome on iOS.
Is there any other way to scan for the beacons on iOS thru' web browsers (be it Safari or Chrome) ?
Thanks
回答1:
Unfortunately, Google can't add Web Bluetooth to Chrome for iOS without Apple's participation, and Apple has given no indication that they are supporting the Web Bluetooth project.
Understand that Apple restricts web browsers on iOS to use Safari or Safari web views, which has the same JavaScript engine and bindings as Safari. Google Chrome for iOS is required to use the same internal rendering and JavaScript engine as Safari, which simply does not support Web Bluetooth.
Bottom line: While it is possible that Apple will one day decide to join the Web Bluetooth party, there can be no support on third party iOS browsers until Apple decides to do so.
来源:https://stackoverflow.com/questions/45234339/scanning-for-beacons-on-ios-thru-web-browser