android - Geofence transitions service and wakelock -


there an example how receive geofence events enter or exit. example uses ordinary intentservice. far known background services should use wakefulintentservice make sure service can finish job before power off.

in test app follow google example , extend service intentservice. , seems work correctly. app writes geofence events sqlite db without problems.

therefore i'm curios if (a) luck or (b) when using play services api there no need use wakelocks.

i implemented similar service app. wakelock detector shows app has 1500 cpu wakelocks per day 8 geofences. think means, required steps implemented in play services.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -