Skip to content

Commit 041578d

Browse files
fix: consent order in sbs notify
1 parent 6718a30 commit 041578d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

CountlyServerConfig.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,6 @@ - (void)notifySdkConfigChange:(CountlyConfig *)config
304304
CountlyCommon.sharedInstance.maxValueLength = config.sdkInternalLimits.getMaxValueSize;
305305
CountlyCommon.sharedInstance.maxSegmentationValues = config.sdkInternalLimits.getMaxSegmentationValues;
306306

307-
config.requiresConsent = _consentRequired ?: config.requiresConsent;
308-
CountlyConsentManager.sharedInstance.requiresConsent = config.requiresConsent;
309-
if (_consentRequired)
310-
{
311-
[CountlyConsentManager.sharedInstance cancelConsentForAllFeatures];
312-
}
313-
314307
config.eventSendThreshold = _eventQueueSize ?: config.eventSendThreshold;
315308
config.requestDropAgeHours = _dropOldRequestTime ?: config.requestDropAgeHours;
316309
config.storedRequestsLimit = _requestQueueSize ?: config.storedRequestsLimit;
@@ -320,6 +313,13 @@ - (void)notifySdkConfigChange:(CountlyConfig *)config
320313

321314
config.updateSessionPeriod = _sessionInterval ?: config.updateSessionPeriod;
322315
_sessionInterval = config.updateSessionPeriod;
316+
317+
config.requiresConsent = _consentRequired ?: config.requiresConsent;
318+
CountlyConsentManager.sharedInstance.requiresConsent = config.requiresConsent;
319+
if (_consentRequired)
320+
{
321+
[CountlyConsentManager.sharedInstance cancelConsentForAllFeatures];
322+
}
323323

324324
#if (TARGET_OS_IOS)
325325
[config.content setZoneTimerInterval:_contentZoneInterval ?: config.content.getZoneTimerInterval];

0 commit comments

Comments
 (0)