ibeacon

It is possible that stopRangingBeaconsInRegion stop notifications of a monitored region?

拈花ヽ惹草 提交于 2019-12-23 03:42:12
问题 I'm doing a sample project working with CLLocationManager . I call startMonitoringForRegion . Then, I start to simulate a beacon with other device and didEnterRegion is called. In the didEnterRegion , I call startRangingBeaconsInRegion and works fine. Then, I pause the beacon emitter and didExitRegion is called. In the didExitRegion I call stopRangingBeaconsInRegion . If I start again the beacon emitter, didEnterRegion is not called. I found this in the Apple documentation:

onIBeaconServiceConnect() is not getting called in android

时光毁灭记忆、已成空白 提交于 2019-12-23 03:28:09
问题 I am using AndroidIbeacon library released by radiusnetworks and I am able to run their demo app successfully. But when I add that to my application onIBeaconServiceConnect() method is not called. Below my code, public class Sample extends Activity implements IBeaconConsumer { protected static final String TAG = "Sample"; private IBeaconManager iBeaconManager = IBeaconManager .getInstanceForApplication(this); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

Trouble segue-ing to a uiviewcontroller from appDelegate upon UILocalNotification - with SWRevealViewController in the mix

纵饮孤独 提交于 2019-12-23 03:03:24
问题 I'm using iBeacons and am trying to respond to the UILocalNotifications they trigger. Everything works fine there and I'm able to display my message content in the notification. I want to be able to launch a specific UIViewController when the user swipes the notification. Currently, according to NSLog output, I'm very close. The tricky bit is that I'm using SWRevealViewController for its cool slider-window menu features and so the segue is crapping out and saying, *** Assertion failure in -

locationManager:didEnterRegion and didExitRegion are never getting called :iBeacon

那年仲夏 提交于 2019-12-23 02:56:27
问题 While testing with beacons (ios devices) i found the listener beacon giving some unexpected behavior. locationManager:didEnterRegion method is not getting called even if a beacon enters a region. But the locationManager:didRangeBeacons:inRegion: is getting called correctly, and detected beacons are shown there. - (void)startListening{ self.locationManager = [[CLLocationManager alloc] init]; [self.locationManager setDelegate:self]; NSUUID *myProximityUUID = [[NSUUID alloc] initWithUUIDString

Using AltBeacon: start and stop scanning from app settings

♀尐吖头ヾ 提交于 2019-12-23 02:54:13
问题 I am integrating the AltBeacon API in an existing app. The app shall start actions in the background , when the user enters or leaves a "bluetooth zone". This functionality should be optional and the user should start and stop the scanning from the settings. I tryed bind/unbind the BeaconConsumer , but I saw, that in the background the BluetoothLeScanner is keeping scanning! How can I stop the BluetoothLeScanner from scanning? Is this the right way? Here is the code: @Override public void

In leScanCallback device.getName() returns null on few devices

亡梦爱人 提交于 2019-12-23 02:26:11
问题 Checked following post but not helpful on my case : BluetoothDevice always returns null on getName() My problem I am developing an application that scans the nearby Bluetooth device and displays in the home screen.But on few devices(i.e moto G,samsung note2) the device name is null on leScanCallback. My code private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() { @Override public void onLeScan(final BluetoothDevice device, final int rssi, byte[]

UUIDs of iBeacons are different on different devices

蹲街弑〆低调 提交于 2019-12-23 00:25:13
问题 I'm developing an application that will use iBeacons for indoor navigation, and I found that the rate the function locationManager:rangingBeaconsDidFailForRegion:withError: is being called is not high enough, so I'm going to add the RSSI data from CoreBluetooth's centralManager:didDiscoverPeripheral:advertisementData:RSSI: . And I found a curious fact: when I listen to the iBeacon with CoreLocation and log the peripheral id: - (void)centralManager:(CBCentralManager *)central

CLBeacon: How can I get the distance from the IBeacons?

霸气de小男生 提交于 2019-12-22 13:44:11
问题 How can I get the distance from the iBeacons? I am able to get their proximity , but how can I get the distance from the CLBeacon? I have worked with Estimote SDK, which gives the distance value, but I don't know how I can get it with the CLBeacon. - (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region{ if (self.beaconRegion) { if([beacons count] > 0) { //get closes beacon and find its major CLBeacon *beacon = [beacons

AltBeacon library BootstrapNotifier does not call didEnterRegion

ⅰ亾dé卋堺 提交于 2019-12-22 09:20:57
问题 Hi i have created app using altbeacon reference app. And i want to call didEnterRegion using bootstrap notifier when app sees beacon in background. But i dont want it to scan background every 5 minutes, i want my app react to new beacon immediately. Is there some way to do this ? My Code : private static final String TAG = ".Application"; private final Identifier uuid = Identifier.parse("A1B2C3D4-AAAA-48D2-B060-D0C0D0C0D0C0"); private RegionBootstrap regionBootstrap; @Override public void

Bluetooth LE : Address Type

别等时光非礼了梦想. 提交于 2019-12-22 06:37:28
问题 I am working on the iBeacon technology and I can't find any answer to a particular point concerning the address type. I found the documenation (bluetooth specification) explaining what are the address types but I can't seem to find how to chose between the two types (public and random). Here is an example where I found it (it is a sniffed packet transmitted by an iBeacon on a Raspberry PI) : http://i.stack.imgur.com/QF5gf.png and http://i.stack.imgur.com/NHY6x.png (sorry I can't post images