蓝牙信标/ iBeacons的浏览器意识 [英] Browser Awareness of Bluetooth Beacons / iBeacons

查看:238
本文介绍了蓝牙信标/ iBeacons的浏览器意识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,使意识到其邻近iBeacon显示设备的浏览器?

Is there a way to make a browser aware of iBeacon devices in its proximity?

类似HTML5地理位置是工作的方式...

Similar to the way HTML5 Geolocation is working...

如果不这样做是否能与浏览器插件,可以实现可以提供由JavaScript消费细节的东西吗?

If not would this be something that can be achieved with a browser plug-in that can provide the detail to be consumed by javascript?

推荐答案

不幸的是,没有。任何Web浏览器已经实现了信标检测和JavaScript之间的桥梁。

Unfortunately, no. No web browsers have implemented any bridges between beacon detection and JavaScript.

我不认为一个插件的方法有可能在移动浏览器(无论是iOS或Android),因为无论是浏览器支持在移动Safari浏览器/手机铬外部应用和JavaScript之间的异步通信。你可以做的最好的是有回应的灯塔自定义应用程序,然后在浏览器启动一个网页。但我知道这不是你所要求的东西。

I don't think a plugin approach is possible on mobile browsers (either iOS or Android), because neither browser supports asynchronous communication between external apps and JavaScript in Mobile Safari / Mobile Chrome. The best you could do is have a custom app that responds to a beacon, then launches a web page in the browser. But I realize that isn't what you are asking for.

如果你想建立使用JavaScript本机应用程序,你可以用科尔多瓦(又名PhoneGap的),并使用提供支持灯塔插件。我公司有一个对我们ProximityKit灯塔框架:

If you want to build a native app with JavaScript, you can use Cordova (aka PhoneGap) and use plugins that provide beacon support. My company has one for our ProximityKit beacon framework:

https://github.com/RadiusNetworks/proximitykit-plugin-cordova

还有,这里有基本的灯塔支持科尔多瓦插件:

There is also a Cordova plugin that has basic beacon support here:

https://github.com/petermetz/cordova-plugin-ibeacon

这篇关于蓝牙信标/ iBeacons的浏览器意识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆