android / location-samples

Multiple samples showing the best practices in location APIs on Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geofence Stopped working

amit-semusi opened this issue · comments

Sometimes it works as expected, sometimes it stopped working till i reboot my device.

problem i am seeing when it stopped working, then receiver is not getting invoke.

override fun onReceive(context: Context, intent: Intent) {
val event = GeofencingEvent.fromIntent(intent)

this block is not execute when geofence stop working.
every time when this block execute and app gets data from intent then geofence works as expected.

It happens very randomly, almost every time I have to restart my device to make it working.

Device Details
Name : Redmi 9A
Version : 10.0

Vivo 1726
version : 8.1.0