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 one parameter to 0
It opens a new session by resetting the fns parameter to 1
You need to set a new configuration when calling this method in Android. 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.
This method can help debug and test your configuration during SDK implementation, but shouldn't be used in production. If used in production, errors and issues may arise.
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
Cookie Notice
We use technically neccessary cookies. For details, please have a look at: mapp.com/privacy