#EndUserConsent.GetConsentState() is not functioning?

1 messages · Page 1 of 1 (latest)

smoky galleon
#

Hello, ShowMainMenu() always works, although I have never seen Popup

    private void CheckAnalyticsPopupFlow()
    {
        var state = EndUserConsent.GetConsentState();

        if (state.AnalyticsIntent == ConsentStatus.Unspecified) ShowAnalyticsPopup();
        else ShowMainMenu();
    }

Unity 6000.2.0f1

fast estuary
fast estuary
#

Ah. That's brand new to Unity 6.2 and Analytics 6.1 Explains why I've not seen it before 😛

#

Have you logged what the ConsentStatus returns as after you do GetConsentState?

smoky galleon
fast estuary
#

That's odd. Seems like that should be returning true.

#

You could always convert the enum to a string or an integer to be sure that comparison is accurate.

#

Although again, not sure why what you have is not working given what's being logged.