Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Remember previous registred regions when app is in background #6

Open
brunocarneiro opened this issue Aug 2, 2016 · 2 comments
Open
Labels

Comments

@brunocarneiro
Copy link

brunocarneiro commented Aug 2, 2016

Hi Stephen @stephenrob,

I'm testing your library and first I would like to congrat you for such amazing job!
I could make it work when my app get in background. BackgroundBeaconService is being restarted however it does not "remember" the previous registred regions.
What I did to make it work was to register my regions again. But I think it's not the right way.
Do you have any ideia why I'm facing this. What I did wrong?
Your help will be very appreciated.

@stephenrob
Copy link
Member

@brunocarneiro sorry for not replying sooner

At the minute it doesn't remember the regions so when it restarts the service it doesn't reload the regions and start monitoring/ranging them. Probably explains why I don't seem to be getting much data sent from android to our data server.

I'll have a look at how best to store these, probably within the shared preferences and then register, monitor and range them when the service starts.

@stephenrob stephenrob added the bug label Aug 7, 2016
@brunocarneiro
Copy link
Author

Great to hear that @stephenrob ! If you have any update on that, kindly let me know!
Thanks for replying!

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

No branches or pull requests

2 participants