CNIL Continue Without Accepting

Overview

The French Data Protection Authority (CNIL) requires that consent be given as a result of positive action on the part of the site visitor on a mobile experience. Continuing to use the app is not considered a positive action and therefore does not constitute a positive action on the part of the app user. Furthermore, refusal of consent must accessible on the same screen with equal ease the option to give consent.

You can choose how the Continue Without Accepting option appears to users on your mobile app.

  • Text
  • Link
  • Button

For more information on the app-side configuration of mobile templates to display as text or link, please CNIL Mobile App Requirements on myOneTrust.

Display as Button

With OneTrust 6.22.0, mobile app customers can now customize the CNIL option as a button to promote a consistent experience when presented with a close option.

Initialize SDK

  1. Navigate to RenderNativeUIActivity.java
  2. Locate //TO initialize/override OT SDK with UI params.initOTSDKUI();
  3. Uncomment by removing the //
  4. The SDK will now overrive the OT SDK with the UI params when it initializes.

Testing the API Version

Customers only need to set the API version for testing purposes.

  1. Navigate to SettingsActivity.java
  2. Locate the Initializer for OT SDK params.
  3. Drop a new line after .setProfileSyncParams(otProfileSyncParams)
  4. Enter .setAPIversion(), then include the specific release version or latest.
OTSdkParams.SdkParamsBuilder sdkParamsBuilder = OTSdkParams.SdkParamsBuilder.newInstance()
	.setOTCountryCode(countryCode.getText().toString().trim()))
	.setOTRegionCode(regionCode.getText().toString().trim()))
	.setProfileSyncParams(otProfileSyncParams)
	.setAPIVersion("latest")

Customize closeButton

  1. Open the OTPublishersNativeApp folder.
  2. Navigate to OTPublishersNativeModule > src > main > assets > ot_ui_params.json
  3. Locate bannerTheme > buttons > closeButton
  4. The parameters for closeButton will be blank by default. Provide your customizations for the Continue Without Accepting button.
Key NameType
backgroundColorString
fontNameString
fontSizeNumber
fontTextStyleString
textColorString
borderColorString
borderWidthNumber
borderRadiusNumber

Validating the Build

  1. Once you've set the method as true and provided customizations for the closeButton, run the sample app build.
  2. The Continue Without Accepting option should appear as a button with your customizations.
    (image)