Reset

This section describes how to reset data previously detected for a user.

Giving users the opportunity to delete all data collected is required by law in many areas (As it is in Europe with the EU-GDPR)

You should consider adding these actions at user request (using a user-accessible menu item).

The Veery Backend automatically deletes all data it previously collected from a user, as soon as it detects that the user have de-installed the application using Veery SDK.

Veery Functions

resetLocalHistory

Delete all data from the database on the mobile phone. If Veery.BACKEND is still activated, it will re-download all data saved from the backend.

resetBackendHistory

Delete all data from the backend databases. If Veery.BACKEND is still activated, it will re-send all data back from the phone to the backend.

resetGeoProfileHistory

Delete all computed data from the Veery backend. If Veery.GEOPROFILE is activated, the backend will recompute all Poi, Trips and predictions.

Ensure all geolocation data is removed from any database (phone and backend)

veery.activate(Veery.DEACTIVATE_ALL);
  veery.resetLocalHistory();
  veery.resetBackendHistory();
  // do use "activate(Veery.BACKEND)" or "activate(Veery.GEOPROFILE)" in the next minute

Force the backend to recompute Predictions and Pois

//
veery.activate( Veery.GEOPROFILE)
// Requires Android Veery 1.3.2
//veery.activate(Veery.BACKGROUND_GEOLOC | Veery.POINT_OF_INTEREST | Veery.PREDICTION)
veery.resetGeoProfileHistory();

Force the backend to recompute Trips

//
veery.activate( Veery.BACKEND) //or Veery.GEOPROFILE
// Requires Android Veery 1.3.2
//veery.activate(Veery.BACKGROUND_GEOLOC  | Veery.COLLECT | Veery.ROUTE_MATCH)
veery.resetBackendHistory();

// All data from the phone will be resend and recomputed from the backend