Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Android Geofences get removed if the app is killed by the user?

The question is in the title. Do the new Android Geofences get removed if the app is killed by the user?

I am using the new Android Geofences (announced at Google IO 2013). I can't quite work out if the app's Geofences get removed if the user removes/kills the app using the Android task manager. I think with the old addProximityAlert technique they were not removed.

like image 560
Tim Avatar asked May 21 '13 14:05

Tim


People also ask

How accurate is geofencing?

App developers can use native Android and iOS location detection to power their location-based experiences and engagement. However, native geofencing technology can only deliver accuracy of around 100-200 meters.

How is geofencing calculated?

To do this, just calculate the distance between the center of the circle and your location (longitude, latitude). If the distance is smaller than your circle radius, then you're inside the geofence, otherwise you're outside the geofence. This formula is called the Haversine formula.

How is a geo fence defined?

Geofencing is a location-based service in which an app or other software uses GPS, RFID, Wi-Fi or cellular data to trigger a pre-programmed action when a mobile device or RFID tag enters or exits a virtual boundary set up around a geographical location, known as a geofence.


1 Answers

As declared here:

The app must re-register geofences if they're still needed after the following events, since the system cannot recover the geofences in the following cases:

The device is rebooted. The app should listen for the device's boot complete action, and then re- register the geofences required.
The app is uninstalled and re-installed.
The app's data is cleared.
Google Play services data is cleared.
The app has received a GEOFENCE_NOT_AVAILABLE alert. This typically happens after NLP (Android's Network Location Provider) is disabled.
like image 158
heartear Avatar answered Sep 19 '22 19:09

heartear