最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android AltBeacon Library detecting AltBeacons but not iBeacons. [android-beacon-library] - Stack Overflow

programmeradmin4浏览0评论

Current Implementation

beaconManager = BeaconManager.getInstanceForApplication(reactContext); 
beaconManager.getBeaconParsers().clear(); 
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));

What's Working:

  • AltBeacon detection works perfectly
  • Bluetooth permissions are properly handled
  • Scanning starts and runs without errors
  • We receive callbacks in the didRangeBeaconsInRegion method

What's Not Working:

  • iBeacons are not being detected at all
  • We've verified the iBeacons are broadcasting using other tools
  • No errors in the logs

Questions:

  1. What is the correct parser layout for iBeacon detection?
  2. Do I need additional configuration specifically for iBeacon support?

Environment:

  • Android Beacon Library version: latest
  • Android Version: 15
  • Testing device: Pixel 9 pro XL

Implementation

.java

Things I've Tried:

  • Different parser layouts
  • Verifying Bluetooth is enabled and permissions are granted
  • Confirming the iBeacons are within range and broadcasting
  • Logging beacon detection events

What's Not Working:

  • iBeacons are not being detected at all
发布评论

评论列表(0)

  1. 暂无评论