Configuring Age Gate Prompts for Mobile Apps

The Age Gate Prompt allows you to create an age verification message which is configured directly within the application UI. This features gives you the opportunity to allow data subjects to certify that they are of age when entering an age restricted area of your website while also allowing you to adhere to industry standards. When a user comes across the Age Gate Prompt when interacting with your application, they'll encounter a pop up that will require them to choose one of two options that are configured based on your use case.

For more information on how to configure the Age Gate Prompt on the application level, see the showConsentUI method under Displaying User Interfaces (iOS) and Displaying User Interfaces (Android).

To configure age gate prompts

  1. On the Cookie Consent menu, select Templates. The Templates screen appears.

  2. Select a template. The Template details screen appears.
    Note:

    For more information on creating templates, see Creating Mobile Templates.

  3. Enable the Mobile app template setting. A confirmation modal appears. 


  4. Click the Confirm button.
    Note:

    This confirmation will only appear once for templates that are not yet been configured for mobile apps. All configuration options will be enabled by default.



  5. Navigate to the Banner tab.
  6. Select Mobile app from the Platform selector.


  7. Navigate to the Prompt tab.
  8. Expand the Age gate prompt section if collapsed.
  9. Enable the Enable age gate prompt setting.


  10. Click the edit icon next to the Age gate prompt setting. The Age Gate Prompt preview screen appears.


  11. Configure the prompt as desired. All changes will show immediately in the preview area.


    Field
    Description
    Show logo

    Enable or disable this setting to show or hide the logo on the Age Gate Prompt.

    Logo

    Select an image file here to add a custom logo to the prompt.

    Title text

    Enter a title for the prompt.

    Description text

    Enter a description for the prompt.

    Yes button text

    Enter button text for the Yes button. The default text is Yes.

    No button text

    Enter button text for the No button. The default text is No.

  12. Click the Save and close button once complete.

To configure age groups for purposes

You can add age groups that correspond to specific purposes and categories. This allows you to block users in the defined age range from providing consent selections by preventing the CMP from displaying the specified purposes and categories.

If the mobile app does not send users' age ranges to the OneTrust SDK, the age group rules will not take effect and the default age gate prompt will display.

  1. On the Cookie Consent menu, select Templates. The Templates screen appears.

  2. Select a template. The Template details screen appears.
    Note:

    For more information on creating templates, see Creating Mobile Templates.

  3. Navigate to the Banner tab.
  4. Select Mobile app from the Platform selector.


  5. Navigate to the Prompt tab.
  6. Expand the Age gate prompt section if collapsed.
  7. Enable the Enable age group rules setting.


  8. Click the edit icon next to Purposes.
  9. Configure the age group rules as necessary. You can add up to three rules per template.


    Field
    Description
    Name

    Enter a name for the age group rule.

    Age range

    Select the ages for the range to which the group rule applies.

    Categories & Purposes

    Select all categories or purposes relevant to the age range.

    Add

    Click the button to add another age group rule.

  10. Click the Save and close button once complete.