Open Saroja-T opened 1 year ago
In the "Actual Behavior" section you say " I still observe that a region is found, despite having set the number of regions to 0 using bootstrapRegion.addRegion. Is it possible to add functions to stop all processes? " but I don't see anything in the code you showed that calls bootstrapRegion.addRegion
. Can you please share the code that does this?
By using this function am adding regions for (macAddress in macAddressList) { Log.e("Before loop", "regionlist size: $macAddress") val region = Region(macAddress, macAddress) MonitorBeaconsRegion( macAddress, macAddress, beaconManager, ).createRegion() MonitorBeaconsRegion( macAddress, macAddress, beaconManager ).startMonitoring() }
Expected behavior
In user mode, I've created four regions using the RegionMonitor class. Upon logout, I stop monitoring all regions using the "stopMonitoring" method. For instance, in user mode, add four regions and find one of them, then in guest mode, remove all regions from the monitored.
Actual behavior
In user mode, I've created four regions using the RegionMonitor class. Upon logout, I stop monitoring all regions using the "stopMonitoring" method. However, when logging in as a guest, I still observe that a region is found, despite having set the number of regions to 0 using bootstrapRegion.addRegion. Is it possible to add functions to stop all processes? For instance, in user mode, add four regions and find one of them, then in guest mode, remove all regions from the monitored and ranging lists?
Steps to reproduce this behavior
for (macAddress in macAddressList) { Log.e("Before loop", "regionlist size: $macAddress") val region = Region(macAddress, macAddress) MonitorBeaconsRegion( macAddress, macAddress, beaconManager, ).createRegion() MonitorBeaconsRegion( macAddress, macAddress, beaconManager ).startMonitoring() }
class MonitorBeaconsRegion( regionNameParam: String, regionAddressParam: String, beaconManagerParam: BeaconManager, apicontext: Context, ) { private val regionName: String = regionNameParam private val regionAddress: String = regionAddressParam private val beaconManager: BeaconManager = beaconManagerParam private val pagecontext: Context =apicontext private var count: Int = 0 private var objSharedPref: PrefUtils? = null
}
Mobile device model and OS
version all devices
Android Beacon Library version
2.19.6
IMPORTANT: This forum is reserved for feature requests or reproducible bugs with the library itself. If you need help with using the library with your project, please open a new question on StackOverflow.com.