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
Post a Comment