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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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