ibeacon

Ionic2: Unsubscribe Event to Avoid Duplicate Entries?

限于喜欢 提交于 2020-01-04 06:06:11
问题 I've followed this tutorial which outlines adding monitoring beacons in an Ionic 2 application. I have it working great: when the view loads, it initializes and begins listening for beacons: home.ts ionViewDidLoad() { this.platform.ready().then(() => { this.beaconProvider.initialise().then((isInitialised) => { if (isInitialised) { this.listenToBeaconEvents(); } }); }); } This calls the listenToBeaconEvents function which populates a list in the view with all of the beacons: home.ts

How to continue monitoring iBeacon when screen is off in iOS?

不想你离开。 提交于 2020-01-04 01:19:08
问题 I am developing an iOS app to monitor iBeacons. It works well in both foreground and background. I also need it to keep monitoring even when the screen is off. Now my problem is, when I turn off the screen with the shoulder button, NSLog shows that the iBeacon signal goes off (RSSI=0, beacon.accuracy=-1.0) accordingly, and 10 seconds later, there is no beacon found at all, while the delegate method locationManager:didRangeBeacons:inRegion: is called continuously. It seems that the app is

How to get the detail for beacon detected by CBCentralManager

眉间皱痕 提交于 2020-01-03 05:06:11
问题 I have detected Peripheral devices using CBCentralManager , Code i have used is this, - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self.navigationController setNavigationBarHidden: YES animated:NO]; cbMgr = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; } - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI

How to get the detail for beacon detected by CBCentralManager

谁都会走 提交于 2020-01-03 05:06:08
问题 I have detected Peripheral devices using CBCentralManager , Code i have used is this, - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self.navigationController setNavigationBarHidden: YES animated:NO]; cbMgr = [[CBCentralManager alloc] initWithDelegate:self queue:nil]; } - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI

Auto launch an activity when beacon comes in a certain distance

不想你离开。 提交于 2020-01-03 04:59:05
问题 I want my application to auto launch an activity when beacon comes within a certain distance (in my case it is 1 meter) My activity gets launched when i plug in or plug off the charger and when i boot the device but it didn't get auto launch when i closed the application and beacon is in 1 meter. what i want is if beacon is in 1 meter then activity should launch by itself. I am using android beacon library and following the same steps mentioned on https://altbeacon.github.io/android-beacon

Eddystone beacon detecting issue

倾然丶 夕夏残阳落幕 提交于 2020-01-02 08:11:52
问题 Here is a code I use to detect Eddystone using iPhone iOS 9: - (void)viewDidLoad { [super viewDidLoad]; if ([CLLocationManager locationServicesEnabled]) { _locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; self.locationManager.pausesLocationUpdatesAutomatically = NO; [self.locationManager requestAlwaysAuthorization]; NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"f7826da6-4fa2-4e98-8024-bc5b71e0893e"]; NSString *bundleIdentifier = [[NSBundle

Detecting iBeacons with different UUIDs

房东的猫 提交于 2020-01-01 07:10:24
问题 I'm trying to use UUIDs as identifiers for specific beacons (using phones in this case). I understand that major and minor are used to do this, but I'd rather use the UUID, or the identifier string. With that being said, is there anyway to scan for beacons regardless of UUIDs with the CLBeacon API? 回答1: On Android you can scan for all UUIDs. On iOS you cannot. See: http://developer.radiusnetworks.com/2013/10/21/corebluetooth-doesnt-let-you-see-ibeacons.html On iOS, CoreLocation limits you to

Ranging Beacons only works when app running?

一世执手 提交于 2019-12-31 07:55:29
问题 I am having difficulties getting this to work for when the app is not running. I have locationManager:didRangeBeacons:inRegion: implemented and it is called when the app is running in the foreground or background, however it doesn't seem to do anything when I quit the app and lock the screen. The location services icon goes away and I never know that I entered a beacon range. Should the LocalNotification still work? I have Location updates and Uses Bluetooth LE accessories selected in

iBeacon: Get advertisement package faster

别等时光非礼了梦想. 提交于 2019-12-31 05:33:08
问题 In my app I get the information of the beacons with CoreLocation and and the LocationManager. I've set the advertising interval of the beacons to 200ms. Is it possible to call the didRangeBeacons delegate method faster, so that i get the values of the advertising package according to the advertising interval of the beacon? 回答1: No, you cannot alter the frequency of the didRangeBeacons:inRegion callback, which is 1 Hz regardless of the beacon advertising frequency. You can get callbacks for

Get properties of Kontakt iBeacon

戏子无情 提交于 2019-12-31 04:58:05
问题 I'm developing an iBeacon app and I want to get all properties of Kontakt iBeacons . There are 2 or 3 topic about that in stackoverflow but nobody couldn't answer this. My app is a global iBeacon project. I can see all properties of Estimote iBeacons also can change major , minor values. I did this with using connect method in Estimote SDK however I couldn't connect Kontakt iBeacons . I just accessed major , minor and rssi values with Kontakt SDK . I have an API key to connect these iBeacons