android-kotlin-geo-fences
android-kotlin-geo-fences copied to clipboard
Doesnt work in Deep Doze mode
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
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.