firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
199 stars 32 forks source link

[Bug] FirebaseAnalytics.SetConsent #954

Closed yangjiechao closed 3 months ago

yangjiechao commented 4 months ago

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

  1. I add Arguments according to the document to add debug console view events - FIRAnalyticsVerboseLoggingEnabled, but can't see any Log, must add extra - FIRAnalyticsDebugEnabled, Log:ad_storage is granted. analytics_storage is granted. ad_user_data is granted. ad_personalization is granted.
  2. Then I call Firebase. Analytics. FirebaseAnalytics. SetConsent (dicConsent); After that, the AD_storage-related log, instead, Analytics data has been reset and Resetting App Measurement data
  3. Even if I call the native method [FIRAnalytics setConsent:consent]; remain get the log:Analytics data has been reset and Resetting App Measurement data
yangjiechao commented 3 months ago

I find the problem,if i call the unity-firebase remote config, the the log will disapper

paulinon commented 3 months ago

Hi @yangjiechao,

Apologies for the late revert. Could you provide a minimal, reproducible example of your implementation along with the steps you've taken to replicate the issue? Could you also clarify what you mean when you said that your Analytics data has been reset?

yangjiechao commented 3 months ago

Hi @yangjiechao,

Apologies for the late revert. Could you provide a minimal, reproducible example of your implementation along with the steps you've taken to replicate the issue? Could you also clarify what you mean when you said that your Analytics data has been reset?

Although you cannot see the log messages about ad_storage is granted. after calling firebase remote.FetchData or analytics.SetConsent of unity firebase sdk, it still works normally and I will close the issue.