Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): consent mode #82

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat(android): consent mode #82

wants to merge 1 commit into from

Conversation

m1ga
Copy link
Collaborator

@m1ga m1ga commented Apr 4, 2024

untested

FirebaseAnalytics.setConsent({
  analyticsStorage: FirebaseAnalytics.GRANTED,
  adStorage: FirebaseAnalytics.GRANTED,
  adUserData: FirebaseAnalytics.GRANTED,
  adPersonalization: FirebaseAnalytics.GRANTED
});

firebase.analytics-android-5.3.0.zip

@Astrovic
Copy link
Contributor

Astrovic commented Apr 12, 2024

Thank you @m1ga! I just did a test, but it seems that FirebaseAnalytics.GRANTED and FirebaseAnalytics.DENIED are both undefined, perhaps the constants were not assigned correctly.

I tried directly with true/false, I don't get any errors (not even before) but I still haven't figured out how to check if it works correctly.

FirebaseAnalytics.setConsent({
  analyticsStorage: true, //false
  adStorage: true,
  adUserData: true,
  adPersonalization: true
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants