Webtrekk.reset(context) clears the current singleton instance and initializes the SDK again using the current configuration as a base.
Important
Use this primarily for testing and controlled reset flows. It should not be part of normal production navigation.
What happens during reset
The SDK triggers
sendRequestsNowAndClean()for the current instance.The existing configuration is copied.
The stored Ever ID is cleared from the copied configuration.
The singleton instance is recreated and initialized again.
Method
Webtrekk.reset(this)Webtrekk.reset(this);When to use it
Reset the SDK during implementation testing.
Reset the runtime state before re-running a controlled setup flow.
Things to keep in mind
The method requires a valid Android
Context.The reset flow clears the current Ever ID before the SDK is initialized again.
If an SDK instance already exists, the current configuration is reused as the base for reinitialization.
Related pages: Retrieve Active Global Configuration, Configure Global Tracking.