Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question The CheckForRequiredConsents method cannot be used under the new consent flow.

Discussion in 'Unity Analytics' started by fiascosoftworks, Jan 10, 2024.

  1. fiascosoftworks

    fiascosoftworks

    Joined:
    Dec 12, 2020
    Posts:
    22
    Hello,

    I started using analytics and got the following error:
    The CheckForRequiredConsents method cannot be used under the new consent flow

    when I use the function:
    List<string> consentIdentifiers = await AnalyticsService.Instance.CheckForRequiredConsents();

    I found here at https://docs.unity.com/ugs/en-us/manual/analytics/manual/sdk5-migration-guide, that this method now obsolete.

    Is there now anyway to find out what region someone falls for the consent?
    Is there a better way to be approaching this problem instead?

    Thank you,
    Ninnec