Skip to content Skip to sidebar Skip to footer

Geofence Triggering Procedure Explanation Needed?

SO I've created geofence as below: GeofenceModel modelExit = new GeofenceModel.Builder('id_oi_456') .setTransition(Geofence.GEOFENCE_TRANSITION_DWELL)

Solution 1:

I think it is working as intended. The project that goes to re-run will consider the app as fresh install. As stated in the documentation - Use Best Practices for Geofencing:

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.

Hope this helps.

Post a Comment for "Geofence Triggering Procedure Explanation Needed?"