Closed MitjaNucic closed 2 weeks ago
Yes, this should be a bug. Would you be willing to create a PR?
Something like this should probably suffice:
diff --git a/packages/analytics/src/web.ts b/packages/analytics/src/web.ts
index 7ee8262..f1a5c75 100644
--- a/packages/analytics/src/web.ts
+++ b/packages/analytics/src/web.ts
@@ -37,7 +37,7 @@ export class FirebaseAnalyticsWeb
const consentSettings: ConsentSettings = {};
switch (options.type) {
case ConsentType.AdPersonalization:
- consentSettings.personalization_storage = status;
+ consentSettings.ad_personalization = status;
break;
case ConsentType.AdStorage:
consentSettings.ad_storage = status;
Plugin(s)
Version
6.1.0
Platform(s)
Current behavior
It looks like calling
Is enabling personalization_storage instead of ad_personalization the correct behavior? Code from lib:
Code to reproduce:
Expected behavior
Consent status for AdPersonalization should enable ad_personalization and not personalization_storage
Reproduction
https://github.com/capawesome-team/.capacitor-app
Steps to reproduce
Explained above.
Other information
No response
Capacitor doctor
Installed Dependencies:
@capacitor/core: 6.1.2 @capacitor/ios: 6.1.2 @capacitor/android: 6.1.2 @capacitor/cli: 6.1.2
[success] Android looking great! 👌 [error] Xcode is not installed
Before submitting