Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different behaviors on background #45

Open
bcjteixeira opened this issue May 17, 2019 · 0 comments
Open

Different behaviors on background #45

bcjteixeira opened this issue May 17, 2019 · 0 comments

Comments

@bcjteixeira
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant