ibeacon

Receive signal from beacon while app is in the background

狂风中的少年 提交于 2019-12-05 23:49:18
I have a iOS app that interact with a beacon. Also have a function to detect the signal from a beacon and if the signal is out of range I want to store something in the database (in this case core data) func updateDistance(distance: CLProximity) { UIView.animateWithDuration(1.0) { [unowned self] in switch distance { case .Unknown: self.view.backgroundColor = UIColor.grayColor() self.distanceReading.text = "No Beacon Signal Detected" updateDatabaseWithLocation() } } } So the app works fine as long as the app is running in foreground. My understanding is I can also have the app in the background

How do Android and iOS scan for Bluetooth beacons without battery issues?

丶灬走出姿态 提交于 2019-12-05 18:37:04
if i want to develop own my iBeacon services in Android or IOS, it has to be practical. which means customer can use my services without shortage of battery. i think even if iBeacon technology is based on Bluetooth Low Energy, it could be still lack of battery. that's because an application must be running to scan iBeacon device all the time. As i know, iOS has its own solution for battery issue. when an IOS application detect iBeacon devices, it is running in the background and IOS(not app) is scanning specific UUIDs by itself, not the all UUIDs nearby. this is how they save energy. am i

AltBeacon library BootstrapNotifier does not call didEnterRegion

混江龙づ霸主 提交于 2019-12-05 18:22:10
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 onCreate() { super.onCreate(); Log.d(TAG, "App has started"); Region region = new Region(TAG, uuid, null,

Check if Bluetooth Low Energy Beacons are nearby in Android

别说谁变了你拦得住时间么 提交于 2019-12-05 15:28:43
Background I want to programm an android app which can detect if I enter or leave a region. Each region (lets say a building) has a BLE Beacon in advertising mode. I do know the mac adressess of the beacons. The app shall run in background and shall be energy efficient. It is not important to recognize the region immediately, but a window of 5 minutes would be sufficient. On http://developer.android.com/guide/topics/connectivity/bluetooth-le.html its said that you should not "scan on a loop" but is there any other way to realize region enter/leave events? Also I am bit confused about UUIDs,

Android AltBeacon library: how to find the beacon layout?

放肆的年华 提交于 2019-12-05 11:36:28
I'm testing with a new type of beacon, and this is what I got from the debug: onScanResult() - ScanResult{mDevice=20:73:2A:09:3E:41, mScanRecord=ScanRecord [mAdvertiseFlags=26, mServiceUuids=null, mManufacturerSpecificData={76=[2, 21, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 0, 5, 0, 10, -40]}, mServiceData={}, mTxPowerLevel=-2147483648, mDeviceName=null], mRssi=-55, mTimestampNanos=23541956038874} After playing around with many beacon layout in SO, I still can't detect it for my app. From the debug above, how to find out the beacon parser. Is there a "universal" beacon

Bluetooth LE : Address Type

六月ゝ 毕业季﹏ 提交于 2019-12-05 09:23:58
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 yet because of my reputation) Let's try to ask questions and make it more specific : Since a public

CLLocationManager kCLErrorDomain Codes?

喜夏-厌秋 提交于 2019-12-05 09:03:05
Using iBeacon and CoreLocation I'm receiving the following error: Error Domain=kCLErrorDomain Code=16 "The operation couldn’t be completed. (kCLErrorDomain error 16.) Unless I'm missing it, there doesn't seem to be a clear reference on Apple for what each of the error code means. Can anyone interpret this error code? The error calls from: - (void)locationManager:(CLLocationManager *)manager rangingBeaconsDidFailForRegion: (CLBeaconRegion *)region withError:(NSError *)error{ NSLog(@"%@", error); } - (void)locationManager:(CLLocationManager *)manager monitoringDidFailForRegion:(CLRegion *)region

Programmatically, How to identify if a beacon belongs to Eddystone or iBeacon?

寵の児 提交于 2019-12-05 08:24:30
I have created an android application to scan for BLE using Bluetooth LEscanner. Now that I need my app to identify if a beacon belongs to iBeacon or Eddystone. So far, I'm successful in determining UUID,MajorId,MinorId of ibeacon by parsing the AD frame. It's relatively easy to read the bytes of the advertisements if you know the byte offsets of all the fields. Two code snippets below show you how you can parse these out. The first shows how you can do this in your own onLeScan callback using the Android Beacon Library , and the second shows how you can roll your own from scratch. To explain

What's the maximum value for major and minor for iBeacon transmitter?

不想你离开。 提交于 2019-12-05 06:01:22
Question: 1) What's the maximum value for major and minor for iBeacon transmitter? 2) I'm using only one UUID, is there a limit for startRangingBeaconsInRegion to detect the major and minor value? Both Major and Minor is 16bits. So the maximum major/minor is 65535. 来源: https://stackoverflow.com/questions/29505807/whats-the-maximum-value-for-major-and-minor-for-ibeacon-transmitter

Make Samsung Android device advertise as an iBeacon

与世无争的帅哥 提交于 2019-12-05 05:04:54
Has anybody used Samsung's Bluetooth LE APIs to make a Samsung Android device advertise as an iBeacon? This should be possible, but I do not have access to a device to try it. If anybody has used it to make a Samsung Android device advertise as any other Bluetooth LE peripheral, I would like to know that, too. EDIT: This is now possible on Android L. See here. Unfortunately, @reTs and @duncan-c are right (+1 for each of them). The Samsung BLE SDK cannot send out real BLE advertisements as is required for iBeacons. I was holding out hope because their documentation says "allowing applications