diff --git a/platform-darwin/Source/iOS/MPiOSAppDelegate.m b/platform-darwin/Source/iOS/MPiOSAppDelegate.m index a3093436..e6309441 100644 --- a/platform-darwin/Source/iOS/MPiOSAppDelegate.m +++ b/platform-darwin/Source/iOS/MPiOSAppDelegate.m @@ -681,12 +681,14 @@ prefs[@"reviewedVersion"] = @(YES); #endif + [SentrySDK.currentHub getClient].options.enabled = @YES; [SentrySDK configureScope:^(SentryScope *scope) { for (NSString *pref in prefs.allKeys) [scope setExtraValue:prefs[pref] forKey:pref]; }]; } else { + [SentrySDK.currentHub getClient].options.enabled = @NO; [Countly.sharedInstance cancelConsentForAllFeatures]; } }