Measure activity in the background

By default, the Adjust SDK pauses the sending of requests when your app is running in the background. You can configure the SDK to send requests in the background by enabling the background measurement feature.

Your config object contains a boolean sendInBackground property that controls this behavior. You can set this property by calling the setSendInBackground method on your config instance with a boolean value.

Important:
You must set the setSendInBackground property before you initialize the Adjust SDK in your app.
C#
AdjustConfig adjustConfig = new AdjustConfig("{YourAppToken}", AdjustEnvironment.Sandbox);
//...
adjustConfig.setSendInBackground(true);
//...
Adjust.start(adjustConfig);