GeofencingApi is great feature for making notifications when user enter to specific place on map and also exit from specific place.
I’ve updated official GeofencingApi tutorial to make it more visual.
Here application which able register geofence just after map click. Use it for register your place and test how it works. This app have nice overlays which show whole geofence area (Red circle).
Here is YouTube with app in action
And link to github
If you see this post then you probably have problem with running Android Service or other background activity in Xiaomi Redmi Note 3 phone.
MIUI ROM usually kill background activity after 5-10 minutes user inactivity.
So, how to make applications with location based or other services works with MIUI.
For now I’ve got solution which can be done by end user.
- End user should go to Settings –> Battery & performance –> Manage apps battery usage –> Choose apps.
- Click on application.
- Choose “No restriction”
- And if your application work with background location the also choose “Allow” for BACKGROUND LOCATION.
Below short video with these steps