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.COLLECT and Veery.ROUTE_MATCH are still activated, it will re-download all data saved from the backend.

resetBackendHistory

Delete all data from the backend databases. If Veery.COLLECT and Veery.ROUTE_MATCH are 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.ROUTE_MATCH, Veery.POINT_OF_INTEREST and Veery.PREDICTION are still 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 react-native-veery 1.4.4 or higher
//  Veery.activate(Veery.BACKGROUND_GEOLOC | Veery.POINT_OF_INTEREST | Veery.PREDICTION );
  Veery.resetGeoProfileHistory();

Force the backend to recompute Trips

//
Veery.activate(Veery.GEOPROFILE); // or GEOPROFILE
// Requires react-native-veery 1.4.4 or higher
//  Veery.activate(Veery.BACKGROUND_GEOLOC | Veery.ROUTE_MATCH);

Veery.resetBackendHistory();

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