Flurry Android Monetization and GDPR¶
(updated: April 13, 2018, 11:00AM Pacific)
Two ways to pass GDPR scope/ end user consent to Flurry SDK:
App can provide the user consent data as part of initialization in the builder using the below API to construct the FlurryConsent object.
public FlurryConsent(boolean isGdprScope, @Nullable Map<String, String> consentStrings)
Post Flurry SDK initialization or if end user consent changes during app usage, consent state can be updated using the following API
Sample Code
init flurry with consent:
Map<String, String> consentStrings = new HashMap<>();
consentStrings.put(“IAB”, iabString);
new FlurryAgent.Builder()
….
.withConsent(new FlurryConsent(true, consentStrings))
….
.build();
To set/ update consent:
FlurryAgent.updateFlurryConsent(new FlurryConsent(false, consentStrings));