altbeacon

using altbeacon library on android 8(oreo), background beacon scan not working

六眼飞鱼酱① 提交于 2020-06-28 05:08:20
问题 My app using Altbeacon library for beacon scanning. my code working well to api level 24(android 7) but doesn't not working on oreo(8.0.0) at first, my gradle setting compileSdkVersion and targetSdkVersion is 26, i thought it was because of this. so, i reference this**https://developer.android.com/about/versions/oreo/background.html#services**, fix my gradle setting(compileSdkVersion 25, targetSdkVersion 25). and install this app on device (apilevel 24, 26) on 24 level device working well,

using altbeacon library on android 8(oreo), background beacon scan not working

孤人 提交于 2020-06-28 05:08:13
问题 My app using Altbeacon library for beacon scanning. my code working well to api level 24(android 7) but doesn't not working on oreo(8.0.0) at first, my gradle setting compileSdkVersion and targetSdkVersion is 26, i thought it was because of this. so, i reference this**https://developer.android.com/about/versions/oreo/background.html#services**, fix my gradle setting(compileSdkVersion 25, targetSdkVersion 25). and install this app on device (apilevel 24, 26) on 24 level device working well,

Transmit an Eddystone Beacon with name using Altbeacon Library

北城余情 提交于 2020-05-17 07:45:16
问题 I use the following code transmiting as Eddystone using my Android device; try { byte[] urlBytes = UrlBeaconUrlCompressor.compress("http://www.****.com"); Identifier encodedUrlIdentifier = Identifier.fromBytes(urlBytes, 0, urlBytes.length, false); ArrayList<Identifier> identifiers = new ArrayList<Identifier>(); identifiers.add(encodedUrlIdentifier); Beacon beacon = new Beacon.Builder() .setBluetoothName("devicename") .setIdentifiers(identifiers) .setManufacturer(0x0118) .setTxPower(-59)

AltBeacon get MacAddress in transmitter

自作多情 提交于 2020-04-18 06:55:07
问题 I'm attempting to transmit as a beacon an Android phone using the altbeacon library. I am trying to get Bluetooth mac address in transmitter side. Is it possible or Can I get MacAddress? [https://i.stack.imgur.com/cBpXz.png] [https://i.stack.imgur.com/bj3nM.png] 回答1: Android, like iOS emits a randomized MAC in its advertisements since Android 5.0+. This randomized MAC will not be the same as the physical MAC of your Bluetooth device reported in Settings. There is no way to turn this off or to

Multiple virtual beacon communication to Multiple transmitting nodes BLE

我的梦境 提交于 2020-04-17 22:51:50
问题 We have two overdrive Node devices to track the beacon location. Our idea is to convert the mobile device to the virtual beacon and track the current location of the virtual device? we are using the code:( Android Beacon Library ). As per the code, we need to pass three params , UUID , Minor , and Major to create a beacon layout. But our assumption is like any number of virtual beacon needed to connect to the BLE node device. It not possible to configure the fixed minor id on our mobile app,

Multiple virtual beacon communication to Multiple transmitting nodes BLE

旧巷老猫 提交于 2020-04-17 22:51:31
问题 We have two overdrive Node devices to track the beacon location. Our idea is to convert the mobile device to the virtual beacon and track the current location of the virtual device? we are using the code:( Android Beacon Library ). As per the code, we need to pass three params , UUID , Minor , and Major to create a beacon layout. But our assumption is like any number of virtual beacon needed to connect to the BLE node device. It not possible to configure the fixed minor id on our mobile app,

setRangeNotifier(RangeNotifier) has been deprecated?

北战南征 提交于 2020-04-13 06:59:27
问题 I am using the alt.beacon library and now I get this warning: warning: [deprecation] setRangeNotifier(RangeNotifier) in BeaconManager has been deprecated. But what is the replacement? I need to range the beacons from a region and the callback RangeNotifier it crucial to implement this feature. public interface RangeNotifier { void didRangeBeaconsInRegion(Collection<Beacon> var1, Region var2); } Anyone has a sample of how the new library is supposed to work? thx! 回答1: Starting with version 2.9

AltBeacon library background service

梦想与她 提交于 2020-01-25 03:20:27
问题 Here is sample code that I'm using to detect enter region events: public class BeaconApplication extends android.app.Application implements BootstrapNotifier { private static final String TAG = "TAGTAG"; @Override public void onCreate() { super.onCreate(); Log.d(TAG, "App started up"); new BackgroundPowerSaver(this); new RegionBootstrap(this, new Region(getPackageName(), null, null, null)); } @Override public void didDetermineStateForRegion(int arg0, Region arg1) { Log.d(TAG,

How to range beacons in background using Altbeacon: Android Beacon Library?

混江龙づ霸主 提交于 2020-01-14 03:17:08
问题 I'm developing an app which provides background Beacon monitoring. I would like to start ranging when user enters beacon from defined region. When app is in background and it's monitoring all the time and user enters my defined region I would like to start ranging and get InstanceID or Major, Minor value to determine what beacon is that, connect to server and send user a notfication. The best would be if I could range and communicate with server in background. I used this sample to achieve

AltBeacon not detect beacon when app is closed

僤鯓⒐⒋嵵緔 提交于 2020-01-06 20:18:08
问题 The library continue scanning correctly but not detect the beacon in this mode. I have read in many places, but they are very different opinions between whether this is possible or not. (I want to think it is) In IOS , this same implementation using the native sdk could be implemented without any inconvenience, it seems a little tricky in android. Works perfect when is foreground and background. This is my beaconManager configuration: public void setUpBeaconManager() throws RemoteException {