Phone act as beacon

余生颓废 提交于 2019-12-24 07:16:36

问题


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.


回答1:


This Cordova plugin supports detection on both iOS and Android:

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

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

It should be reasonably simple to add the missing Cordova bindings for Android so that platform works to transmission as well.



来源:https://stackoverflow.com/questions/44096759/phone-act-as-beacon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!