android-kotlin-geo-fences icon indicating copy to clipboard operation
android-kotlin-geo-fences copied to clipboard

Doesnt work in Deep Doze mode

Open mudassirzulfiqar opened this issue 4 years ago • 1 comments

Describe the problem I have been playing around with Android's geofence API for about 2 years. I notice a problem that because of battery saving modes in some manufacturers, The geofence intent never got triggered. Geofences are dependent on various aspects like if your app never opened for a day , you intent may get killed by OS.

How to reproduce?

  • Add different regions
  • Put your phone into Doze mode by using adb

Versions

  • Latest version of Android studio.
  • Just cloned this project

Additional information There are many same issue has been posted on Stack Over flow about GeoFence doesn't get trigger. The API doesnt send any information about when it will be fail or any thing?

codelab: advanced-android-kotlin

mudassirzulfiqar avatar Jan 11 '21 10:01 mudassirzulfiqar

I have the same issue, where the app not reading the location in the background, even after getting the permissions. Also, I am looking for the solution I hope you found it. Please, let me know.

zaher88abd avatar Apr 10 '21 18:04 zaher88abd