电话充当信标 [英] Phone act as beacon
问题描述
我正在尝试制作一个混合应用程序,通过该应用程序,电话可以充当信标,这意味着它应该同时传输iBeacon和Eddystone.如果没有人可以使用Cordova插件吗?请提出我该如何做的建议.
I'm trying to make an hybrid app by which phone will act as beacon, which mean it should transmit both an iBeacon and an Eddystone. Is there any cordova plugin available if not can anyone please suggest how can I make one.
推荐答案
此Cordova插件支持在iOS和Android上进行检测:
This Cordova plugin supports detection on both iOS and Android:
https://github.com/petermetz/cordova-plugin-ibeacon
它仅支持iOS上的传输,但它使用的底层本机Android Beacon库支持传输:
It only supports transmission on iOS, but the underlying native Android Beacon Library it uses supports transmission:
http://altbeacon.github.io/android-beacon -library/beacon-transmitter.html
为Android添加缺少的Cordova绑定应该相当简单,以便平台也可以传输.
It should be reasonably simple to add the missing Cordova bindings for Android so that platform works to transmission as well.
这篇关于电话充当信标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!