Skip to content

Commit

Permalink
fix: update consent attributes after kit is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
v-lecheverria committed Oct 18, 2024
1 parent 302d21c commit 28f6a0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/mParticle-Appboy/MPKitAppboy.m
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ - (MPKitExecStatus *)didFinishLaunchingWithConfiguration:(NSDictionary *)configu
_started = NO;
}

// Update Consent on launch
[self updateConsent];

execStatus = [[MPKitExecStatus alloc] initWithSDKCode:[[self class] kitCode] returnCode:MPKitReturnCodeSuccess];
return execStatus;
}
Expand Down Expand Up @@ -398,6 +395,9 @@ - (void)start {

self->_started = YES;

// Update Consent on start
[self updateConsent];

dispatch_async(dispatch_get_main_queue(), ^{
NSDictionary *userInfo = @{mParticleKitInstanceKey:[[self class] kitCode]};

Expand Down

0 comments on commit 28f6a0c

Please sign in to comment.