ibeacon

iBeacon Reliable/Unreliable

耗尽温柔 提交于 2019-11-30 16:37:43
I am working on my home automation app. I am using estimotes iBeacons and what I want to do is give my Home Automation Control the ability to know my proximity in my home. Each iBeacon is given a virtual switch on my Home Controller and when I come in contact with a iBeacon my device either in foreground or background will update my control to turn on my switch for when I am near a beacon and turn it off when I have wondered away from my beacon. All of this works perfectly and I am loving it, however some of my conditions rely on me to be in a proximity for a period of time, and what I am

Measure distance to iBeacon from Android device

痞子三分冷 提交于 2019-11-30 15:17:56
I am working on an app that has to measure the distance to an iBeacon. When a user is within a distance (1 meter) the user should be notified. It is working fine on iOS but on Android I get various results. I am using the Estimote Android SDK ( https://github.com/Estimote/Android-SDK ) and Android 4.3. Below is measurement from a Nexus 4 and a Nexus 5. The iBeacon is placed one meter away from the phone (the measurements are consistent with more samples): Nexus 4: 08-25 11:39:04.788: : Major: 27485 Accuracy: 0.36351308115918884 Power: -74 Rssi: -67 08-25 11:39:05.880: : Major: 27485 Accuracy:

Import Objective-c framework into Swift framework project

∥☆過路亽.° 提交于 2019-11-30 13:14:33
问题 I am building a framework in which I need to import some objective-c frameworks for now I need to import "Beaconstac.framework" but as we can not add a bridging header in a swift framework project so my question is how can I use this framework in my project this is not directly accessible in my project I tried import Beaconstac but its giving error "No Such Module" is there any alternative to do this? 回答1: You need to import the Beaconstac framework in your umbrella header. That is, if you'd

iOS iBeacon / Bluetooth connectivity when app is dead and gone

元气小坏坏 提交于 2019-11-30 09:05:55
问题 What I need: A predictable, solid and reliable way of launching iBeacon delegate methods such as didDetermineState , didRangeBeacons , didEnterRegion or didExitRegion when the app is dead and the device is plugged in and nearby. The Current Situation I am making an app for parents to use for their kids to help them shut down their phones during important times. The app is in Objective-C and it needs to maintain a persistent connection to a bluetooth device even after the life of the

requestAlwaysAuthorization not showing permission alert

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 08:10:41
I'm trying to use some fancy iBeacons without success, kCLAuthorizationStatusNotDetermined all time. According to other questions it's a requirement to add those keys to info.plist (some questions says one, other says both). According to an article for iBeacons I need the Always option. <key>NSLocationWhenInUseUsageDescription</key> <string>Nothing to say</string> <key>NSLocationAlwaysUsageDescription</key> <string>Permiso para acceder siempre</string> At viewDidAppear: self.locManager = [[CLLocationManager alloc]init]; self.locManager.delegate = self; [self.locManager

Estimote iBeacon: Monitoring in background (Android)

只愿长相守 提交于 2019-11-30 07:55:07
I would like to have push notifications when my app is open but is in background. For now I have changed the Estimote Demo, and my app gives me a notification when my app is in foreground which is not much of use. I post here my code of NotifyDemoActivity class which is called as soon as I open the app public class NotifyDemoActivity extends Activity { private static final String TAG = NotifyDemoActivity.class.getSimpleName(); private static final int NOTIFICATION_ID = 123; private BeaconManager beaconManager; private NotificationManager notificationManager; private Region region; private long

Import Objective-c framework into Swift framework project

南楼画角 提交于 2019-11-30 06:52:14
I am building a framework in which I need to import some objective-c frameworks for now I need to import "Beaconstac.framework" but as we can not add a bridging header in a swift framework project so my question is how can I use this framework in my project this is not directly accessible in my project I tried import Beaconstac but its giving error "No Such Module" is there any alternative to do this? You need to import the Beaconstac framework in your umbrella header. That is, if you'd ordinarily use, e.g., #import <Beaconstac/Beaconstac.h> in an Obj-C bridging header, for a framework you

iBeacon support for Windows Phone devices

人走茶凉 提交于 2019-11-30 06:52:13
问题 iBeacon in Windows Phone devices -: We need to develop a windows phone application with iBeacon support similar to iOS applications. We didn't find any useful informations on this. Can anyone suggest a better solution on " How to implement iBeacon on Windows Phone Devices? " 回答1: Unfortunately, I have confirmed with Microsoft engineers that this is not possible as of Windows Phone 8.1. While this operating system version did introduce Bluetooth LE support, the APIs do not allow scanning for

Beacon Ranging in Background on iOS

随声附和 提交于 2019-11-30 06:30:05
问题 I understand the difference between monitoring and ranging, and I understand the limitation of iOS in that beacon ranging can only happen in the foreground or in the background when entering and exiting regions as explained here (http://developer.radiusnetworks.com/2013/11/13/ibeacon-monitoring-in-the-background-and-foreground.html). But I'm trying to figure out how to solve a common scenario. If I had a bunch of beacons installed in a department store, how am I supposed to detect when a

Where is the bluetooth/bluetooth.h located in Linux?

跟風遠走 提交于 2019-11-30 05:39:41
I want to build a c file based on BlueZ but seems no bluetooth.h file in my system. fatal error: bluetooth/bluetooth.h: No such file or directory I am sure the bluetooth dongle is running correctly and I have built Bluez successfully. Update For my case, I find the bluetooth.h in /user/include/bluetooth folder You need to install libbluetooth-dev package for compiling your code sudo apt-get install libbluetooth-dev That should install the bluetooth header files. 来源: https://stackoverflow.com/questions/23436909/where-is-the-bluetooth-bluetooth-h-located-in-linux