Android-AltBeacon-Library icon indicating copy to clipboard operation
Android-AltBeacon-Library copied to clipboard

Different behaviors on background

Open bcjteixeira opened this issue 5 years ago • 0 comments

Hi Chris

Before everything else, thank you so much to have the time to work on this library. I'm building an app that communicates with beacons (they broadcast both iBeacon and Eddystone). I'm having a hard time though with the background on Android. The behavior I want to achieve is:

Having my app installed in the phone and closed (terminated), I would like to receive local notification every time the phone gets in the range of one of my beacons. I have this running good with iOS on background, but Android turned to be much harder to achieve. I can see from your samples, that (Android sample) work more close to my goal, but I noticed that you use a AltBeaconLibrary version (10.0.0.0). When I run your Android sample for Xamarin.Forms the behavior when the app is terminated is not as good as the Android sample. I noticed also that xamarin.forms sample for android uses another version of your library (2.7.0.0). I guess you should have different implementations on those version and that's what I would like you give me some feedback on.

I've been reading alot on how best implement background services on Android with Xamarin since I'm looking for my app to run with min API 26. On you samples I can see services, broadcast receivers, job scheduler ?

Can you give me more details on how you implemented this background behavior. In the logs I can see app activating the monitoring from time to time (5000 milisecs, the sample setup).

I'm also trying to understand the connection between Android OS and triggers when a beacon is in range.

Sorry if I'm still confuse with some parts, I'm a kind new on Xamarin/android/ios stuff :)

Any feedback is much appreciated. Thank you, Regards Bruno

bcjteixeira avatar May 17 '19 17:05 bcjteixeira