location-samples
location-samples copied to clipboard
ActivityRecognition does not work in background on HTC M8 with Android 5.0.1
I'm using compile 'com.google.android.gms:play-services-location:8.1.0'
.
It seems that ActivityRecognition sample does not work and is not sending any updates when device goes asleep. It does not work even if I use WakefulBroadcastReceiver
mentioned in #28.
I've added notification to be fired from when DetectedActivitiesIntentService
is triggered.
It works perfect on Sony C5303 Android 4.3 (notifications are but it does not work on HTC M8 Android 5.0.1 (i.e. notifications stop coming as soon as I press power button).
Similar issue here http://stackoverflow.com/questions/33363274/activity-recognition-does-not-work-after-phone-goes-asleep?noredirect=1#comment54586283_33363274.