beacon-keeper icon indicating copy to clipboard operation
beacon-keeper copied to clipboard

AlarmManager.setRepeating() is inexact

Open Karalix opened this issue 8 years ago • 1 comments

I have been using your library for one of my student projet, its siplicity of use was really handy. Then I got a problem with the delay between each scan. The alarms were sent with a delay totally unrelated to what they were set to.

After further research I found the cause of my problem : targeting an API higher than 19 -> Google's documentation.

I did an ugly workaround using Google's suggested solution (using a single time alarm, which is set again each time the alarm goes off) but nothing nice enough for a pull request. I though you would like to be aware of that problem.

Karalix avatar Feb 04 '16 02:02 Karalix

Thank you for submitting the issue, I think it should helps others.

I deeply sorry for so late reply, I didn't touch the library since I wrote it and I have no need to do it now also.

To be honest with you I don't know how to evolve the library, so if someone wants to improve it you should prefer to fork it or feel free to make a pull request.

m039 avatar May 11 '17 10:05 m039