location-samples icon indicating copy to clipboard operation
location-samples copied to clipboard

ActivityRecognition does not work in background on HTC M8 with Android 5.0.1

Open farmazon3000 opened this issue 8 years ago • 1 comments

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).

farmazon3000 avatar Oct 27 '15 12:10 farmazon3000

Similar issue here http://stackoverflow.com/questions/33363274/activity-recognition-does-not-work-after-phone-goes-asleep?noredirect=1#comment54586283_33363274.

farmazon3000 avatar Oct 29 '15 09:10 farmazon3000