是否可以将普通蓝牙低功耗设备(不是iBeacon!)与我的iPhone应用相关联,这样当设备发送数据时,即使iPhone已锁定且应用已终止,我的应用也会被iPhone唤醒(甚至不在后台)? 最佳答案 只要您的应用程序指定了蓝牙中央后台模式,那么它就会被唤醒您的应用与设备建立了当前连接并发送数据(即设备在范围内并通知或指示特征)您的应用与设备的连接处于挂起状态并且它进入范围(即设备超出范围,但您已调用connect以在设备进入范围时自动重新连接)您的应用正在扫描特定服务类型,并且宣传其中一种服务类型的设备进入范围应用终止的情况略有不同
我正在使用AndroidiBeaconLibrary来自RadiusNetworks的iBeacons。一段时间后,我看到不断弹出蓝色警报:“不幸的是,蓝牙共享已停止。”使用[报告][确定]按钮。手机:Android4.4.2的Nexus5。这真令人失望,因为Nexus5目前是顶级Android手机,使用iBeacons似乎在一段时间后无法正常工作。这意味着iBeacons不能用于生产,因为蓝牙LE不能在Android上正常工作(即使是在最新版本上)。似乎只有恢复出厂设置才能解决问题,我不能要求我的应用程序的用户这样做:/。日志:I/DEBUG(175):Buildfingerprin
关闭。这个问题需要更多focused.它目前不接受答案。想改进这个问题吗?更新问题,使其只关注一个问题editingthispost.关闭6年前。Improvethisquestion在answertoanotherquestion中,我看到“您也可以在root的Android4.4.3设备上作为信标传输,但它需要安装具有系统权限的应用程序。”如何做到这一点?
在Beaconoverview它说ProximityBeaconAPI支持iBeacon。这是否意味着我可以检测到iBeacon并使用NearbyMessagesAPI检索附加到它的数据?在Android应用中?编辑:由于iOS的GetBeaconMessages表示:“iOS的NearbyAPI仅支持查找Eddystone信标”,但它对Android的NearbyAPI没有任何说明,也许我们可以假设它可以看到每种类型的信标吗?我仍然想要确认这一点。 最佳答案 好消息是,除Eddystone信标外,Nearby还支持iBeacon。
我无法在Lollipop之前的设备上获取iBeacon的UUID,但下面我的代码在MarshmallowNexus5x中运行。我不想使用任何像AltBeacon或相关的库。BluetoothManagerbm=(BluetoothManager)getSystemService(Context.BLUETOOTH_SERVICE);BluetoothAdaptermBluetoothAdapter=bm.getAdapter();if(mBluetoothAdapter==null||!mBluetoothAdapter.isEnabled()){//IntentenableBtInt
在GooglePlay服务的9.2发行说明中,我发现了以下内容:NearbyThisreleaseremovestherequirementthatclientsusetheProximityBeaconAPItomanagetheirbeacons.NearbywillnowreturnparsedBLEadvertisementsdirectly,allowingclientstousetheirownsolutiontointerpretthoseadvertisements.这对我来说听起来好像我应该能够使用Strategy.BLE_ONLY订阅附近消息并获取附近BLE信标(包
根据documentationAndroidBeacon库,FastbackgrounddetectionsonAndroid5.0+OnAndroid5.0,newscanningAPIsallowformoreefficientbackgroundscanningthatsavesprovidesimilarpowersavingstothetechniquedescribedabove,butwithmuchfasterbeacondetectiontimes.Insteadofittakinguptofiveminutestodetectabeacon(withthedefau
目前,我正在做一个项目,使用安卓手机检测iBeacon,并从iBeacon读取/写入uuid、主要次要等信息在网上搜索了一下,好像推荐使用AltBeacon/android-beacon-library来检测iBeacons。但是,当我尝试以下链接的示例代码时,我找不到iBeacons的任何结果-http://altbeacon.github.io/android-beacon-library/samples.html或者我运行示例引用应用程序-https://github.com/AltBeacon/android-beacon-library-reference.我从RadiusN
我正在尝试从后台的iBeacon中获取Major和Minor值。现在我能够检测到我何时进入一个区域,但我不知道信标正在向哪个Major或Minor做广告。有没有办法得到这个?或者我应该使用谷歌提供的普通蓝牙api来获取原始数据并捕获所需的字节?一旦我使用AltBeacon和蓝牙标准库,我什么也得不到。我使用了http://altbeacon.github.io/android-beacon-library/samples.html中提供的示例代码为了获得背景区域检测并实现接口(interface)BluetoothAdapter.LeScanCallback以获取原始数据以获取主要和次
我正在测试来自AltBeacon的AndroidBeacon库http://altbeacon.github.io/android-beacon-library/index.html我正在监视一个“通用”区域,仅设置第一个ID(UUID),并将id2和id3保留为空。Regionregion=newRegion(uuid,Identifier.parse(uuid),null,null);我收到didEnterRegion没有问题,但我有一个问题。在didEnterRegion中,我收到了Region作为参数,但我能知道启动事件的具体信标吗?我想知道启动此事件区域的信标的id1、id2