ibeacon

Scanning for beacons using universal beacon library

柔情痞子 提交于 2019-12-13 03:21:29
问题 I am trying to implement a mobile app (on iPhone) that just scans for beacons and displays a notification for each one. I am a noob with beacons/bluetooth. I implemented it using the universal beacon library (https://github.com/andijakl/universal-beacon) and i've attached my ios bluetooth implementation. my problem is that i receive about 12 beacon added events even though i only have two (I assume it is picking up all my other bluetooth devices). I also only receive the local name in the

Android BLE Beacon scanning on different phone models

僤鯓⒐⒋嵵緔 提交于 2019-12-13 02:49:47
问题 I am writing Android Application on finding and detecting IBeacons(These are BLE devices) and ranging them(depending on RSSI value) I use Sample code from https://developer.android.com/guide/topics/connectivity/bluetooth-le.html But this Code works different on my android devices (Samsung Galaxy S3 and LG G3). On my S3 the "onLeScan" callback rises many times in loop (about 5 per second) and give me different RSSI values every time depending on the range. But on my LG G3 the "onLeScan"

Beacon show it's present or ranging even if, Beacon Battery is removed, what to do, to remove this bug?

血红的双手。 提交于 2019-12-13 02:26:24
问题 For StartMonitoring iBeacon my code is -(void)startMonitoringForRegionWithUUID:(NSString*)UUID { CLBeaconRegion *beaconRegion= [[CLBeaconRegion alloc] initWithProximityUUID:[[NSUUID alloc] initWithUUIDString:UUID] identifier:UUID]; beaconRegion.notifyOnEntry = YES; beaconRegion.notifyOnExit = YES; beaconRegion.notifyEntryStateOnDisplay=YES; //[self stopMonitoringForRegionWithUUID:UUID]; [self.locationManager startUpdatingLocation]; [self.locationManager startMonitoringForRegion:beaconRegion];

CoreLocation thread crash Crashed: com.apple.CoreLocation.ConnectionClient.0x16fcb870.events

亡梦爱人 提交于 2019-12-12 16:12:54
问题 I'm getting this crash in Apple's CoreLocation thread in our production app. I am not able to reproduce it in my testing also its hard to figure out as its inside CoreLocation. At the moment its happening with few percentage of population but I can see its getting bigger. Crashed: com.apple.CoreLocation.ConnectionClient.0x16fcb870.events 0 CoreLocation 0x2aa2db54 CLClientCreateIso6709Notation + 53675 1 CoreLocation 0x2aa2dc7b CLClientCreateIso6709Notation + 53970 2 CoreLocation 0x2aa2de03

How to run iPhone as a beacon in background in both xcode(swift) and phonegap

懵懂的女人 提交于 2019-12-12 06:37:32
问题 I managed to create an app which turns the phone into a beacon emitter. It works fine on xcode (Swift) and phonegap . The next step for me is making it work in the background as a beacon (I'm developing for iOS 10). I found similar questions to this online but all of them were out of date ie old ios , objective-C and outdate plug-ins would really appreciate it if someone can provide me with a working example or guide me on what to change in my code for both an xcode s(wift) and phonegap Xcode

iBeacon Ranging Service Not Returning any Beacons (Part 2)

倾然丶 夕夏残阳落幕 提交于 2019-12-12 06:35:57
问题 My code has now reached checkpoint 1 and 2. However, it is only detecting the beacon once. I want it to keep receiving the location of the beacon (distance) every five seconds. How can I implement this? Thanks again public class RangingService extends Service implements BeaconConsumer { private BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this); Handler handler; String b = ""; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void onStart

Convert from millis to hex String

好久不见. 提交于 2019-12-12 05:39:36
问题 I want to set the current time as the major and minor values of a beacon. Lets suppose this is the current time 1465398279009 . I want 9827 to be the value of the major and 9009 the value of the minor. I use a java code to call the shell script. this is my java code Long millis = System.currentTimeMillis(); String time=Long.toString(millis); // String major1=time.substring(...); String major1="99"; String major2="99"; String minor1="99"; String minor2="99"; ProcessBuilder pb2=new

Change the alpha of recyclerview item with beacon detection

 ̄綄美尐妖づ 提交于 2019-12-12 05:36:54
问题 In a Fragment I have a list of items construct with RecyclerView (adapter and viewholder). Each item of the list is linked with a estimote beacon. So i want to highlight the item view (setAlpha or add a imageView) when the beacon is detected. The beacon detection is in the fragment file : beaconManager.setRangingListener(new BeaconManager.RangingListener() { @Override public void onBeaconsDiscovered(Region region, List<Beacon> list) { if (!list.isEmpty()) { Beacon nearestBeacon = list.get(0);

Estimote SDK - Beacons raging in background

試著忘記壹切 提交于 2019-12-12 04:53:33
问题 First question is better is Estimote SDK or CoreLocation framework? I have app which is finding the beacons but now i must made an app which will find beacons when application is in background or even is terminated. 回答1: Setting up background detection is pretty automatic in iOS so long as you do it in your AppDelegate and receive callbacks in that class: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { _locationManager = [

Alternative to use ng-init in angular2

你离开我真会死。 提交于 2019-12-12 04:37:04
问题 I'm trying to build an ionic2 application. I want to send notifications to users when ibeacon is detected. It worked with this code in angularjs. How can I do this with angular2 like the code below? <div class="row" ng-controller="Example1Controller" ng-init="add()"> 回答1: You should call it inside the ngOnInit export class yourComponents implements OnInit { ngOnInit() { this.add(); } } 回答2: <div class="row" ng-controller="Example1Controller" ng-init="add()"> Basically in above code ng