I have been using the Android AltBeacon Library to Monitor and Range iBeacons in the nearby vicinity. One specific requirement of this application is allowing scanning for beacon detection even when the application is in the background and completely stop when the application is closed.
This requirement as I understand can be partially satisfied through BootstrapNotifier/RegionBootstrap but the scanning service restarts itself even when the application is closed which I don't want to happen.
My workaround was to implement all the scanning logic in a separate service that can be stopped and started as required. Having said that, the AltBeacon library at its core is itself a service so essentially I am running a service within a service which doesn't really make a lot of sense.
Are there any better ways to do that ? Any ideas would be appreciated.