HomeiOS DevelopmentFirebase Analytics DebugView does not work on iOS (Unity) when ConsentType.AnalyticsStorage =...

Firebase Analytics DebugView does not work on iOS (Unity) when ConsentType.AnalyticsStorage = ConsentStatus.Denied


Firebase Analytics DebugView does not work on iOS (Unity) when ConsentType.AnalyticsStorage = ConsentStatus.Denied, however after I make it ConsentStatus.Granted, I can see the occasions in Firebase’s DebugView.

I’m operating my app in an iPhone, with the arguments: -FIRDebugEnabled -FIRAnalyticsDebugEnabled

I can not have AnalyticsStorage granted as a result of it’d violate the privateness coverage. Nevertheless it seems like no occasions make it to Firebase after I deny it.

Though I nonetheless see all of the occasions in XCode console, as if it have been sending them.

This is my Unity code:

FirebaseAnalytics.SetAnalyticsCollectionEnabled(true); // Assortment enabled
FirebaseAnalytics.SetUserId(Guid.NewGuid().ToString()); // I can not monitor the occasions from the identical person in several classes.

// These are gadget identification properties, they're granted by default, we MUST disable them.
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus> {
    { ConsentType.AdStorage, ConsentStatus.Denied },
    { ConsentType.AnalyticsStorage, ConsentStatus.Denied }, // Altering this make it work.
});

FirebaseAnalytics.SetUserProperty(FirebaseAnalytics.UserPropertyAllowAdPersonalizationSignals, "false");

Is that this a bug in Firebase or am I misunderstanding how Firebase ought to work? I simply wish to keep away from having Firebase determine customers throughout totally different classes.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments