I don't understand how your synchronization process works.
I'm using .NET MAUI. I configured SDK Initialization this way on application created:
MainThread.BeginInvokeOnMainThread(async () =>
{
var adjustConfiguration = _configurationService.Configuration?.Adjust;
if (adjustConfiguration == null || adjustConfiguration.Token == null || adjustConfiguration.Token.Length == 0)
{
Logging.Logger.LogDebug("Adjust token not set");
return;
}
var adjustConfig = new AdjustConfig(adjustConfiguration.Token, adjustConfiguration.Environment);
#if DEBUG
adjustConfig.LogLevel = AdjustLogLevel.VERBOSE;
#else
adjustConfig.LogLevel = AdjustLogLevel.SUPPRESS;
#endif
adjustConfig.SessionSuccessDelegate = (success) =>
{
var strBuilder = new StringBuilder();
strBuilder.AppendLine("Session tracking succeeded !");
strBuilder.AppendLine($"Message: {success.Message ?? ""}");
strBuilder.AppendLine($"Timestamp: {success.Timestamp ?? ""}");
strBuilder.AppendLine($"AdId: {success.Adid ?? ""}");
strBuilder.AppendLine($"JSONResponse: {success.JsonResponse?.ToString() ?? ""}");
SessionTrackingResult = strBuilder.ToString();
};
adjustConfig.SessionFailureDelegate = (failure) =>
{
var strBuilder = new StringBuilder();
strBuilder.AppendLine($"SDK failed to record session due to ${failure.Message}");
strBuilder.AppendLine($"JSONResponse: {failure.JsonResponse?.ToString() ?? ""}");
SessionTrackingResult = strBuilder.ToString();
};
Adjust.InitSdk(adjustConfig);
RegisterPushToken();
});
Here are my logs:
05-22 17:05:43.088 W/Adjust (29140): SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!
05-22 17:05:43.092 W/Adjust (29140): SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!
05-22 17:05:43.096 D/Adjust (29140): Read Attribution: tt:1zdr4xbo tn:Organic net:Organic cam: adg: cre: cl: ct: ca:NaN cc: fir:
05-22 17:05:43.098 D/Adjust (29140): Read Activity state: ec:0 sc:1 ssc:28 sl:3060.5 ts:436.3 la:11:12:13 uuid:cc
05-22 17:05:43.098 D/Adjust (29140): Event metadata file not found
05-22 17:05:43.098 D/Adjust (29140): Global Callback parameters file not found
05-22 17:05:43.098 D/Adjust (29140): Global Partner parameters file not found
05-22 17:05:43.098 D/Adjust (29140): adjust_config.properties file not found in this app
05-22 17:05:44.934 I/Adjust (29140): Google Play Services Advertising ID read correctly at start time
05-22 17:05:44.934 V/Adjust (29140): Foreground timer configured to fire after 60.0 seconds of starting and cycles every 60.0 seconds
05-22 17:05:44.937 D/Adjust (29140): Lifecycle: Registering activity lifecycle callbacks
05-22 17:05:44.937 V/Adjust (29140): Foreground timer starting
05-22 17:05:44.937 V/Adjust (29140): Subsession start
05-22 17:05:44.938 D/Adjust (29140): Read Package queue: []
05-22 17:05:44.938 D/Adjust (29140): Package handler read 0 packages
05-22 17:05:44.942 V/Adjust (29140): Started subsession 29 of session 1
05-22 17:05:44.944 D/Adjust (29140): Wrote Activity state: ec:0 sc:1 ssc:29 sl:3147.8 ts:436.3 la:11:12:13 uuid:cc
05-22 17:05:45.581 D/Adjust (29140): InstallReferrer invoke method name: onInstallReferrerSetupFinished
05-22 17:05:45.581 D/Adjust (29140): InstallReferrer invoke arg: 0
05-22 17:05:45.592 D/Adjust (29140): installReferrer: utm_source=google-play&utm_medium=organic, clickTime: 0, installBeginTime: 0
05-22 17:05:45.592 D/Adjust (29140): installVersion: null, clickTimeServer: 0, installBeginServer: 0, googlePlayInstant: false
05-22 17:05:45.592 D/Adjust (29140): Install Referrer read successfully. Closing connection
Everything sounds good to me. Still nothing available on test console tho. Sometimes it appears, i can click forget and then sometimes it comes back or not. Absolutely no idea about the logic behind this.
In addition, SessionSuccessDelegate and SessionFailureDelegate never fire.
Can i have more details about what i am doing wrong please and what is your retention data process ?
I don't understand how your synchronization process works.
I'm using .NET MAUI. I configured SDK Initialization this way on application created:
Here are my logs:
Everything sounds good to me. Still nothing available on test console tho. Sometimes it appears, i can click forget and then sometimes it comes back or not. Absolutely no idea about the logic behind this.
In addition, SessionSuccessDelegate and SessionFailureDelegate never fire.
Can i have more details about what i am doing wrong please and what is your retention data process ?