ibeacon

Can I use Android Beacon Library in foreground service, even on Android 8 (Oreo)?

為{幸葍}努か 提交于 2019-12-05 02:44:36
问题 What I want to achieve I am building an app for a shopping mall, with large amount of beacons installed not quite far away from each other (assume ~20m distance). When a user walks in this mall, even without opening the app, the app needs to keep scan for beacons. When a beacon is detected, I will then query the server to ask if I need to and what local notification to push to user. What I planned to do My original plan was to create a Service , returns START_STICKY in onStartCommand() in

monitoringDidFailForRegion when regioning for iBeacon, kCLErrorDomain error 5

不羁岁月 提交于 2019-12-05 02:22:52
问题 I am working on a simple App that uses CoreLocation in iOS7.1 to determine a pre-set iBeacon. My Code did work very well until it suddenly stopped. I didn't change anything in the code. The Error occured was "kCLErrorDomain error 5" on "monitoringDidFailForRegion" after start monitoring on "ViewDidLoad": self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"0E82E0A4-03FF-4A92-9C87-1F978917BD51"]; self

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

纵饮孤独 提交于 2019-12-05 01:24:49
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 screen. I've also tried using startMonitoringForRegion, and that sort of works -- if the app is running in

How to scan iBeacon signals without specifying UUID?

老子叫甜甜 提交于 2019-12-05 00:54:26
问题 Since iBeacon signal is just a BLE broadcasting with a predefined BLE profile, I think I can write an iOS App which scan the BLE broadcasting signals and analyze whether any found signal is iBeacon. But how to do that? How to scan all BLE broadcasting signals around? How to distinguish whether a BLE broadcasting signals is iBeacon? 回答1: Unfortunately on iOS you must supply a ProximityUUID to see iBeacons. On Android you can see all iBeacons regardless of UUID. Further, on iOS you can not use

Estimating distance to iBeacon on iOS

拟墨画扇 提交于 2019-12-04 22:15:35
问题 I'm trying to estimate the distance from an iOS device to an iBeacon. I am aware that distance estimation is not super accurate, and I am also aware of this formula: https://electronics.stackexchange.com/questions/83354/calculate-distance-from-rssi I have found, through some research, that an iBeacon's BLE advertisement in fact contains data that represents the calibration value. That is to say, the RSSI determined at 1 meter away is actually broadcast by the beacon for all to see. Now, I

Estimote: detecting multiple beacons with ESTBeaconRegion and startRangingBeaconsInRegion?

蹲街弑〆低调 提交于 2019-12-04 21:30:59
Beginner Estimote question: What is the correct approach for adding multiple Estimote beacons, with their respective major/minors, so that all beacons can be detected separately using startRangingBeaconsInRegion? This code works fine for a single beacon: // Single Beacon Region ESTBeaconRegion* beaconRegion = [[ESTBeaconRegion alloc] initWithProximityUUID:ESTIMOTE_PROXIMITY_UUID major:11111 minor:11111 identifier: @"EstimoteSampleRegion"]; // Start ranging beacons [self.beaconManager startRangingBeaconsInRegion:beaconRegion]; However this code does not work for multiple beacons: // Beacon 1

Trilateration in Android using iBeacons

五迷三道 提交于 2019-12-04 21:20:11
问题 We want to implement some kind of indoor position determination using iBeacons. This article seems really interesting, in which the author implemented the Non-linear Least Squares Triangulation, using the Eigen C++ library and the Levenberg Marquardt algorithm. Since Eigen is written in C++, I tried to use JNI and Android NDK in order to use it but it throws a lot of errors that I have no idea how to solve and I couldn´t find anything online. I also tried to use Jeigen, but it does not have

How to scan all nearby ibeacons using coordova based Hybrid application?

女生的网名这么多〃 提交于 2019-12-04 21:05:02
I am planning to develop a hybrid application that will scan ibeacons , can you please point me to right cordova plugin that has this facility? I was referring to petermetz/cordova , but it seems it doesn't have scan facility I am NOT using Angular JS, so please don't refer to ng plugins Thanks, Rohit Yes, the cordova-plugin-ibeacon is the one to use. It does support scanning for beacons, although the examples don't make this obvious. Check out the "Start ranging a single iBeacon" example. The only difference between looking for a single beacon and lots of beacons is that you set the

What exactly is txPower for Bluetooth LE and how is it used?

大憨熊 提交于 2019-12-04 20:29:05
问题 I am trying to understand what exactly txPower is and how to use it, since I am planning to develop and Android app that uses Beacons. I have seen 2 definitions online: 1.The transmitted power of the beacon. 2.The received power 1 meter away from the beacon. How are these two definitions related? Also, when transmitting a Beacon signal from a device using an app such as QuickBeacon, how do I determine what to set the power (txPower) to? 回答1: Most beacon formats contain a single byte in the

How to reboot CoreBluetooth manager instance at fixed interval in background

我的未来我决定 提交于 2019-12-04 18:27:51
I'm developing a iOS application of using CoreBluetooth and i have one problem in application BackGround. Generally, iOS application can't run long-term in Background. (e.g. pushing HomeButton. switching other application) But my application is set "Uses Bluetooth LE accessories" as BackGroundMode, so i can monitor region in Background. And i implemented startRangingBeaconsInRegion in didEnterRegion. When enter a region, Ranging region will be started and will be stopped after about 10 sec by iOS. But i want to always use ranging in Background. Because my app use only one UUID for detecting