ibeacon

Local Notification When didEnterRegion?

大兔子大兔子 提交于 2019-12-07 17:24:51
问题 I have the following code which work perfect when app terminated. -(void)beaconManager:(id)manager didEnterRegion:(CLBeaconRegion *)region{ UILocalNotification *notification = [UILocalNotification new]; notification.alertBody = @"TEST NOTIFICATION"; notification.soundName = UILocalNotificationDefaultSoundName; [[UIApplication sharedApplication] presentLocalNotificationNow:notification]; } But When I do the following: -(void) createTestNotification { UILocalNotification *notification =

Reducing the threshold of didEnterRegion

有些话、适合烂在心里 提交于 2019-12-07 16:36:26
I'm currently working on an app that I want for my app to detect a beacon in background mode just when it gets close to it(Immediate). Based on articles that I've read it cannot be done with didEnterRegion and I should use ranging while it's running in the background mode(Location Update). is there any solution that directly reduces the didEnterRegion threshold? or Should I use the other method? and if that's the case does it work like didEnterRegion but with a limited range of RSSI? does it work when my phone entered the region and it's locked and the screen is off? Monitoring APIs give you

Estimote Nearables

倖福魔咒の 提交于 2019-12-07 10:47:15
问题 All, I am trying to find the proximity of a nearable. I am constructing a switch statement to check if its near, intermidetate, far etc. I am working in Swift. I have ranged my nearable and I am in a delegate method : func nearableManager(manager: ESTNearableManager!, didRangeNearable nearable: ESTNearable!) { self.nearable = nearable } When I try and get Zone it doesn't find it, so nearable.zone is not found - I don't know what is wrong. Any ideas ? 回答1: I had the same problem. Here is my SO

How to scan multiple regions using startMonitoringForRegion in Objective-C

南笙酒味 提交于 2019-12-07 10:42:21
问题 I've been through two tutorials and am reading up on basic C. Learn best through doing and have written a few light apps in the past week or so. Am getting up to speed to write some apps that will use ibeacon. As I'm going through some samples and reading the reference guide I see that multiple regions can be scanned by running startMonitoringForRegion for each UUID. OK, so I figure I could just run it for each UUID but that's not working. I'm sure I'm doing something basic totally wrong...

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

大憨熊 提交于 2019-12-07 08:29:28
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[] scanRecord) { if (device.getName() != null){//<<- Here it null on few device //my process } } }; Note: I

Check if Bluetooth Low Energy Beacons are nearby in Android

家住魔仙堡 提交于 2019-12-07 07:07:10
问题 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"

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

自闭症网瘾萝莉.ら 提交于 2019-12-07 04:58:55
问题 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? 回答1: 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

Android AltBeacon library: how to find the beacon layout?

 ̄綄美尐妖づ 提交于 2019-12-07 04:57:02
问题 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

CLLocationManager kCLErrorDomain Codes?

拜拜、爱过 提交于 2019-12-07 04:38:40
问题 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

iBeacons: If app is in background, locationManager: didEnterRegion: is called only when lock screen displayed

走远了吗. 提交于 2019-12-06 20:12:56
问题 I'm working on an iOS app that monitors for iBeacon regions. When the app is running in the background, I want it to send a local notification whenever it encounters a particular iBeacon region. Everything works fine, except for one thing: locationManager: didEnterRegion evidently doesn't get called until the user displays the lock screen. So even if the device passed through an iBeacon region while the app was in the background, they don't get the notification until they display the lock