google-developer-training / advanced-android-kotlin-geo-fences

Other
32 stars 78 forks source link

Doesnt work in Deep Doze mode #7

Open mudassirzulfiqar opened 3 years ago

mudassirzulfiqar commented 3 years ago

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?

Versions

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

zaher88abd commented 3 years ago

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.