sendRequestsNowAndClean() starts the SDK's immediate send-and-clean flow using the currently active configuration. It is useful when you want to flush cached requests on demand instead of waiting for the scheduled request interval.
Important
The SDK must already be initialized before you call this method.
Method
Webtrekk.getInstance().sendRequestsNowAndClean()When to use it
Flush cached requests during implementation testing.
Send pending data before a controlled runtime change, such as resetting the SDK or changing track IDs and domain.
Trigger a manual send when you do not want to wait for the configured interval.
What it does
Uses the current track IDs and track domain.
Starts an immediate send process.
Cleans up cached requests after they have been sent successfully.
Related pages: Retrieve Active Global Configuration, Change Track IDs and Domain at Runtime, Reset the SDK Singleton.