Our app is facing a strange problem after Google Play services updated to 4.1. We are using Activity Recognition in the Google Play services. If user changes Location mode to Device Only and back to Battery saving, Activity Recognition Client will stop giving activity updates. We tried to stop and re-request for updates, but it doesn't work. Only solution we found to make it work again is to restart phone.
Steps to reproduce:
We have tested same scenario in Google Play Services 4.2 release. Issue persists in 4.2 too.
In phones older than KitKat, same issue can be reproduced by turning off "Use Wireless networks" and turning back on again under Location services.
Any suggestions to pass this hurdle will be appreciated.
This issue is fixed in latest update of Google Play services(4.3.23 (1069729-030)). All we need to do is replace library project "google-play-services_lib" with latest version(4.3.23 (1069729-030)). I noticed a delay of about 1 minute in AR updates if we toggle location settings, but it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With