Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Last active November 8, 2019 22:20
Show Gist options
  • Save flurrydev/3b3f60665a740557c5dca90b538cd8a6 to your computer and use it in GitHub Desktop.
Save flurrydev/3b3f60665a740557c5dca90b538cd8a6 to your computer and use it in GitHub Desktop.
GDPR_iOS
NSDictionary *consentDict = [[NSDictionary alloc] initWithObjectsAndKeys:@"IAB_Consent_String", @"iab", nil];
FlurryConsent *consent = [[FlurryConsent alloc] initWithGDPRScope:YES
andConsentStrings:consentDict];
FlurrySessionBuilder* builder = [[[[[[FlurrySessionBuilder new]
withLogLevel:FlurryLogLevelAll]
withCrashReporting:YES]
withSessionContinueSeconds:10]
withAppVersion:@”0.1.2”]
withConsent:consent];
[Flurry startSession:flurryAPIKey withSessionBuilder:builder];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment