Closed kababu007 closed 5 years ago
When implementing BeaconConsumer with non-Context objects, you must chain these methods to a context method: unbindService, bindService, context.
See here for more info: https://stackoverflow.com/a/32866373/1461050
For additional help with project-specific yses of the library, please open new questions on StackOverflow.com so we can keep this forum reserved for bugs and feature requests.
It fixes the issues. Thank you.
Expected behavior
onBeaconServiceConnect() should get called when using in LiveData in MVVM
Actual behavior
onBeaconServiceConnect() doesnt get called in 6.0 7.0 but works in 8+ when using LiveData in MVVM.
Steps to reproduce this behavior
Use MVVM with LiveData instead of implementing BeaconConsumer in fragment / activity. It works fine when we implement BeaconConsumer in fragment or activity. Also with LiveData it works in 8+.
Mobile device model and OS version
Motorola Android 7.0 API 24 Tango Lenova 6.0
Android Beacon Library version
2.15.2
Code:
public class BeaconLiveData extends MutableLiveData implements RangeNotifier, BeaconConsumer, MonitorNotifier {
}
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.