Open obfuscatedgenerated opened 4 months ago
Looks like consent_requested is never actually set from the config file: https://github.com/quiver-dev/quiver-analytics-godot-plugin/blob/a19568f29853efee39338d63712a7da44342b359/addons/quiver_analytics/analytics.gd#L90
Should be easy to fix by just adding a line similar to the one linked:
consent_granted = config.get_value("general", "granted")
consent_requested = config.get_value("general", "requested")
The plugin is also not setting consent_requested when consent is denied because it seems to check if consent is granted as a precondition:
Not sure the reason behind this but it means that deny data collection only works if it was already approved before!
I have a basic demo UI for consent collection:
No matter what the user presses, the UI will always pop up every time. Analytics.should_show_consent_dialog() prints true, even when the analytics.cfg file records the consent properly and events are being fired. Even if Analytics.consent_granted is true, Analytics.consent_requested is always false at startup.