The reset function resets the Mapp Intelligence Singleton to the default values:

  • It deletes the current everID (eid) used in the application to identify the user
  • It deletes the account ID
  • It deletes the trackDomain
  • It creates a new user by resetting the one parameter to 0
  • It opens a new session by resetting the fns parameter to 0

You need to set a new configuration when calling this method in Android. (warning) Please note you only need to set a new configuration in SDK version 5.1.3 and lower. In SDK version 5.1.4 and higher, the Android SDK re-initiates the Singleton with the configuration as specified in your application class.

Method

Webtrekk.reset(Context)
JAVA

Example

Webtrekk.reset(this)

//DEPRECATED AS OF VERSION 5.1.4
val trackIds= "...LIST OF TRACK_IDS"
val domain = "...DOMAIN ADRESS"

val config=WebtrekkConfiguration.Builder(trackIds, domain)
    .setBatchSupport(batchEnabled) // optional but recommended 
    .build()

Webtrekk.reset(this,config)button1.setOnClickListener {
            Webtrekk.reset(this)
        }
JAVA
Webtrekk.reset(this);

//DEPRECATED AS OF VERSION 5.1.4
List<String> trackIds= "...LIST OF TRACK_IDS";
String domain="...DOMAIN ADRESS";

Config config= new WebtrekkConfiguration.Builder(trackIds,domain)
        .setBatchSupport(true) // optional but recommended
        .build();

Webtrekk.reset(this,config);
JAVA