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