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
- Navigate to
RenderNativeUIActivity.java
- Locate
//TO initialize/override OT SDK with UI params.initOTSDKUI();
- Uncomment by removing the
//
- 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.
- Navigate to
SettingsActivity.java
- Locate the Initializer for OT SDK params.
- Drop a new line after
.setProfileSyncParams(otProfileSyncParams)
- 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
closeButton
- Open the
OTPublishersNativeApp
folder. - Navigate to
OTPublishersNativeModule > src > main > assets > ot_ui_params.json
- Locate
bannerTheme > buttons > closeButton
- The parameters for
closeButton
will be blank by default. Provide your customizations for the Continue Without Accepting button.
Key Name | Type |
---|---|
backgroundColor | String |
fontName | String |
fontSize | Number |
fontTextStyle | String |
textColor | String |
borderColor | String |
borderWidth | Number |
borderRadius | Number |
Validating the Build
- Once you've set the method as true and provided customizations for the closeButton, run the sample app build.
- The Continue Without Accepting option should appear as a button with your customizations.
(image)
Updated 12 months ago