![]() There are also our iOS devices (if any are or could be stationary), our Windows, Mac & Linux computers, etc.īasically, I want to find out if there are ways of using ANY of these otherwise-stationary devices that have Bluetooth radios as Bluetooth Beacons. So, if there is some kind of app that already brings this capability to Android, or if anybody knows a way of doing something like this with Tasker/SharpTools/WhateverElse, please let me know.ĮDIT: I just realized that my ‘farm’ of available Bluetooth devices is much wider than just the Androids that I have mounted on the walls. Now I just need to figure out how to get the wall-mounted Androids to start sending out Bluetooth ‘beacon signals’ so that I can use them for micro-presence. I already know how to get the generated info from my pocket-phone into SmartThings when the time comes. Since I already have a few (and will add more over time) Android devices mounted on walls around the house to run SmartTiles, LANnouncer, and other things, I figure I might as well take advantage of the fact that they have Bluetooth radios too, and start building my micro-presence bluetooth ‘mesh’ (I know, not really the best term, but that’s not my area lol ) with what I already have on-hand. I get that, but I want the Android to be the Beacon itself so that I can use them in my future micro-presence strategy. I’m not wondering about using the Android device as a ‘Receiving Station’ of Beacon reports from iBeacons. Now, I’m wondering if it would be possible to use Android devices with Bluetooth radios (phones, tablets, TVs, etc) as Bluetooth ‘Beacons’. A fully working example for fast beacon detection/launching in the background in Android 8.I know about and (thanks to ( here) think I understand the concept of iBeacons. I am expecting a connection.Īny help would be appreciated. I can't say for sure, but my gutfeeling is that something should happen right after "AppStarter: Waiting for BeaconService connection", e.g. If (beaconManager.isAn圜onsumerBound()) return įor (Region region : beaconManager.getMonitoredRegions()) Ġ3-02 17:38:15.024 2661-5362/? I/BeaconBle: Starting scan on OS scanner. This is the code that I have in the onCreate() function of the App class: beaconManager = BeaconManager.getInstanceForApplication(this) In fact, looking at "adb shell dumpsys jobscheduler" I see zero active jobs. My understanding is that in case of issues, it should at least launch a JobScheduler that runs the scan, but this never seems to happen. Setting up the RegionBootstrap, I do see that it's calling the didDetermineStateForRegion event once, but afterwards it's dead silence. However, even adding a UUID filter (and using an iBeacon layout), it will not trigger whatsoever: regionBootstrap = new RegionBootstrap(this, new Region("BackgroundRegion", Identifier.parse("e1234460-beac-acda-acda-adaaacdadded"), null, null)) Īgain, the exact same is working when using monitoring, so it cannot be related to the UUID or layout. As the blog page explains, Android 8.1 requires a filter in order to work. In fact, I believe the example on the page is incorrect, since it sets up the regionBootstrap without any filtering. While I can make the "Monitoring" example work (thus making sure there are not layout issues etc), I cannot for the life of me make the fast beacon detection work. My understanding is the "Starting an App in the Background" example on this page allows the set-up of the fast beacon detection. Instead of doing it from scratch I am using the latest beacon library linked on the page. Fast beacon detection in this context simply means that I want the beacons to be detected even when the app is not running or is in the background, similarly how to iOS detects beacons on a hardware level once you specify the regions. I am trying to implement the fast beacon detection by David G Young as shown here under Android 8.1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |