I have implemented the android geofence code as per tutorial: https://www.raywenderlich.com/7372-geofencing-api-tutorial-for-android
A weird thing is that the geofence triggers only work when Google maps is running, on any app on device. When my app has launched, and then I go to home screen, location changes do not trigger geofence services. But if I open Google maps native app, and I change device location, then magically the background geofence service runs on my app.
Any thoughts? Is this maybe an Emulator issue?