Skip to content

Commit 0d74b3c

Browse files
fix: Update consent attributes after kit is initialized (#98)
1 parent 302d21c commit 0d74b3c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/mParticle-Appboy/MPKitAppboy.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,6 @@ - (MPKitExecStatus *)didFinishLaunchingWithConfiguration:(NSDictionary *)configu
334334
_started = NO;
335335
}
336336

337-
// Update Consent on launch
338-
[self updateConsent];
339-
340337
execStatus = [[MPKitExecStatus alloc] initWithSDKCode:[[self class] kitCode] returnCode:MPKitReturnCodeSuccess];
341338
return execStatus;
342339
}
@@ -398,6 +395,9 @@ - (void)start {
398395

399396
self->_started = YES;
400397

398+
// Update Consent on start
399+
[self updateConsent];
400+
401401
dispatch_async(dispatch_get_main_queue(), ^{
402402
NSDictionary *userInfo = @{mParticleKitInstanceKey:[[self class] kitCode]};
403403

0 commit comments

Comments
 (0)