Enable/disable Sentry on iOS with sendInfo.
This commit is contained in:
parent
508abec94e
commit
6dd8790404
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user